Skip to content

Commit c0b5b5b

Browse files
committed
Simplify CI workflows
1 parent 2394666 commit c0b5b5b

File tree

1 file changed

+3
-28
lines changed

1 file changed

+3
-28
lines changed

.github/workflows/build-lint-test.yml

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
- name: Install Yarn dependencies
1818
run: yarn --immutable
1919

20-
build-source:
21-
name: Build source
20+
build:
21+
name: Build
2222
runs-on: ubuntu-latest
2323
needs:
2424
- prepare
@@ -33,32 +33,7 @@ jobs:
3333
node-version: ${{ matrix.node-version }}
3434
cache: 'yarn'
3535
- run: yarn --immutable --immutable-cache
36-
- run: yarn build:source
37-
- name: Require clean working directory
38-
shell: bash
39-
run: |
40-
if ! git diff --exit-code; then
41-
echo "Working tree dirty at end of job"
42-
exit 1
43-
fi
44-
45-
build-types:
46-
name: Build types
47-
runs-on: ubuntu-latest
48-
needs:
49-
- prepare
50-
strategy:
51-
matrix:
52-
node-version: [16.x, 18.x, 20.x]
53-
steps:
54-
- uses: actions/checkout@v3
55-
- name: Use Node.js ${{ matrix.node-version }}
56-
uses: actions/setup-node@v3
57-
with:
58-
node-version: ${{ matrix.node-version }}
59-
cache: 'yarn'
60-
- run: yarn --immutable --immutable-cache
61-
- run: yarn build:types
36+
- run: yarn build
6237
# This step is dependent on the TypeScript build output, so it's run
6338
# here, rather than in the test job.
6439
- run: yarn test:types

0 commit comments

Comments
 (0)