Skip to content

Commit 05c3994

Browse files
Test ci cache
1 parent 65ea5b7 commit 05c3994

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

.github/workflows/ci.yml

+17-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Continuous Integration
22

3-
on: pull_request
3+
on:
4+
pull_request:
5+
push:
6+
branches: dev-releases
47

58
permissions:
69
contents: read
@@ -45,31 +48,33 @@ jobs:
4548
PARCEL_BENCHMARK_APIKEY: ${{ secrets.PARCEL_BENCHMARK_APIKEY }}
4649

4750
unit_tests:
48-
name: Unit tests (${{matrix.os}}, Node ${{matrix.node}})
51+
name: Unit tests (${{ matrix.os }}, Node ${{ matrix.node }})
4952
strategy:
5053
matrix:
5154
node: [18, 20]
5255
os: [ubuntu-latest, macos-latest, windows-latest]
53-
runs-on: ${{matrix.os}}
56+
runs-on: ${{ matrix.os }}
5457
steps:
5558
- uses: actions/checkout@v4
5659
- uses: actions/setup-node@v4
5760
with:
5861
cache: yarn
59-
node-version: ${{matrix.node}}
62+
node-version: ${{ matrix.node }}
6063
- uses: dtolnay/rust-toolchain@master
6164
with:
6265
toolchain: stable
6366
components: rustfmt
6467
- uses: Swatinem/rust-cache@v2
68+
with:
69+
shared-key: ${{ matrix.os }}-node-${{ matrix.node }}}
6570
- name: Bump max inotify watches (Linux only)
71+
if: ${{ runner.os == 'Linux' }}
6672
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p;
67-
if: ${{matrix.os == 'ubuntu-latest'}}
6873
- run: yarn --frozen-lockfile
6974
- run: yarn build-native-release
7075
- run: yarn test:unit
7176
- name: Upload @parcel/rust Linux Binaries artifact
72-
if: ${{matrix.os == 'ubuntu-latest' && matrix.node == 20}}
77+
if: ${{ runner.os == 'Linux' && matrix.node == 20 }}
7378
uses: actions/upload-artifact@v3
7479
with:
7580
name: Rust Linux Binaries
@@ -79,29 +84,31 @@ jobs:
7984
packages/core/rust/*.node
8085
8186
integration_tests:
82-
name: Integration tests (${{matrix.os}}, Node ${{matrix.node}})
87+
name: Integration tests (${{ matrix.os }}, Node ${{ matrix.node }})
8388
strategy:
8489
matrix:
8590
node: [18, 20]
8691
os: [ubuntu-latest, macos-latest, windows-latest]
8792
# These tend to be quite flakey, so one failed instance shouldn't stop
8893
# others from potentially succeeding
8994
fail-fast: false
90-
runs-on: ${{matrix.os}}
95+
runs-on: ${{ matrix.os}}
9196
steps:
9297
- uses: actions/checkout@v4
9398
- uses: actions/setup-node@v4
9499
with:
95100
cache: yarn
96-
node-version: ${{matrix.node}}
101+
node-version: ${{ matrix.node }}
97102
- uses: dtolnay/rust-toolchain@master
98103
with:
99104
toolchain: stable
100105
components: rustfmt
101106
- uses: Swatinem/rust-cache@v2
107+
with:
108+
shared-key: ${{ matrix.os }}-node-${{ matrix.node }}}
102109
- name: Bump max inotify watches (Linux only)
103110
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p;
104-
if: ${{matrix.os == 'ubuntu-latest'}}
111+
if: ${{ runner.os == 'Linux'}}
105112
- run: yarn --frozen-lockfile
106113
- run: yarn build-native-release
107114
- run: yarn build

0 commit comments

Comments
 (0)