Skip to content

Commit

Permalink
Speed up CI tests (bluesky-social#704)
Browse files Browse the repository at this point in the history
* couple of ci changes

* change script name

* missed quotes

* bump cache version

* try without matrices

* try with matrix again

* one more shard
  • Loading branch information
dholms authored Mar 23, 2023
1 parent f74840a commit 0735d7a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,22 @@ jobs:
- run: yarn install --frozen-lockfile
- run: yarn build
test:
strategy:
matrix:
shard: [1/4, 2/4, 3/4, 4/4]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"
- uses: actions/cache@v3
with:
path: /tmp/jest_rt
key: ${{ hashFiles('**/yarn.lock') }}-${{ matrix.shard }}
- run: yarn install --frozen-lockfile
- run: yarn test
- run: yarn test:withFlags --maxWorkers=2 --shard=${{ matrix.shard }} --passWithNoTests
verify:
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"verify": "lerna run verify --stream",
"prettier": "lerna run prettier",
"build": "lerna run build",
"test": "NODE_ENV=development lerna run test --stream"
"test": "NODE_ENV=development lerna run test --stream",
"test:withFlags": "NODE_ENV=development lerna run test --stream --"
},
"devDependencies": {
"@babel/core": "^7.18.6",
Expand Down

0 comments on commit 0735d7a

Please sign in to comment.