1
1
name : Continuous Integration
2
2
3
- on : pull_request
3
+ on :
4
+ - pull_request
5
+ - push :
6
+ branches : dev-releases
4
7
5
8
permissions :
6
9
contents : read
@@ -45,31 +48,33 @@ jobs:
45
48
PARCEL_BENCHMARK_APIKEY : ${{ secrets.PARCEL_BENCHMARK_APIKEY }}
46
49
47
50
unit_tests :
48
- name : Unit tests (${{matrix.os}}, Node ${{matrix.node}})
51
+ name : Unit tests (${{ matrix.os }}, Node ${{ matrix.node }})
49
52
strategy :
50
53
matrix :
51
54
node : [18, 20]
52
55
os : [ubuntu-latest, macos-latest, windows-latest]
53
- runs-on : ${{matrix.os}}
56
+ runs-on : ${{ matrix.os }}
54
57
steps :
55
58
- uses : actions/checkout@v4
56
59
- uses : actions/setup-node@v4
57
60
with :
58
61
cache : yarn
59
- node-version : ${{matrix.node}}
62
+ node-version : ${{ matrix.node }}
60
63
- uses : dtolnay/rust-toolchain@master
61
64
with :
62
65
toolchain : stable
63
66
components : rustfmt
64
67
- uses : Swatinem/rust-cache@v2
68
+ with :
69
+ shared-key : ${{ matrix.os }}-node-${{ matrix.node }}}
65
70
- name : Bump max inotify watches (Linux only)
71
+ if : ${{ runner.os == 'Linux' }}
66
72
run : echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p;
67
- if : ${{matrix.os == 'ubuntu-latest'}}
68
73
- run : yarn --frozen-lockfile
69
74
- run : yarn build-native-release
70
75
- run : yarn test:unit
71
76
- name : Upload @parcel/rust Linux Binaries artifact
72
- if : ${{matrix .os == 'ubuntu-latest ' && matrix.node == 20}}
77
+ if : ${{ runner .os == 'Linux ' && matrix.node == 20 }}
73
78
uses : actions/upload-artifact@v3
74
79
with :
75
80
name : Rust Linux Binaries
@@ -79,29 +84,31 @@ jobs:
79
84
packages/core/rust/*.node
80
85
81
86
integration_tests :
82
- name : Integration tests (${{matrix.os}}, Node ${{matrix.node}})
87
+ name : Integration tests (${{ matrix.os }}, Node ${{ matrix.node }})
83
88
strategy :
84
89
matrix :
85
90
node : [18, 20]
86
91
os : [ubuntu-latest, macos-latest, windows-latest]
87
92
# These tend to be quite flakey, so one failed instance shouldn't stop
88
93
# others from potentially succeeding
89
94
fail-fast : false
90
- runs-on : ${{matrix.os}}
95
+ runs-on : ${{ matrix.os}}
91
96
steps :
92
97
- uses : actions/checkout@v4
93
98
- uses : actions/setup-node@v4
94
99
with :
95
100
cache : yarn
96
- node-version : ${{matrix.node}}
101
+ node-version : ${{ matrix.node }}
97
102
- uses : dtolnay/rust-toolchain@master
98
103
with :
99
104
toolchain : stable
100
105
components : rustfmt
101
106
- uses : Swatinem/rust-cache@v2
107
+ with :
108
+ shared-key : ${{ matrix.os }}-node-${{ matrix.node }}}
102
109
- name : Bump max inotify watches (Linux only)
103
110
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 '}}
105
112
- run : yarn --frozen-lockfile
106
113
- run : yarn build-native-release
107
114
- run : yarn build
0 commit comments