Skip to content

Commit ea2a1a0

Browse files
committed
fix: test dependant ci jobs
Signed-off-by: Reinis Martinsons <[email protected]>
1 parent 2bf1a5d commit ea2a1a0

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

.github/workflows/prDependencies.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Checks
2+
on: [push, pull_request]
3+
jobs:
4+
install:
5+
name: Install dependencies
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
node:
10+
- 20
11+
cargo:
12+
- stable
13+
- nightly
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v3
17+
- name: "Use Node ${{ matrix.node }}"
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: "${{ matrix.node }}"
21+
cache: yarn
22+
- name: Install Cargo toolchain
23+
uses: actions-rs/toolchain@v1
24+
with:
25+
toolchain: ${{ matrix.cargo }}
26+
profile: minimal
27+
components: rustc, rustfmt
28+
- name: Cache Cargo dependencies
29+
uses: Swatinem/rust-cache@v2
30+
- name: Install node packages
31+
run: yarn install --frozen-lockfile --ignore-scripts
32+
- name: Upload node_modules for reuse
33+
uses: actions/upload-artifact@v3
34+
with:
35+
name: node_modules-${{ matrix.node }}-${{ matrix.cargo }}
36+
path: node_modules
37+
lint:
38+
name: Lint
39+
needs: install
40+
strategy:
41+
matrix:
42+
node:
43+
- 20
44+
cargo:
45+
- stable
46+
- nightly
47+
if: matrix.cargo == 'nightly'
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: Reuse node_modules from install
51+
uses: actions/upload-artifact@v3
52+
with:
53+
name: node_modules-${{ matrix.node }}-${{ matrix.cargo }}
54+
path: node_modules
55+
- name: Lint js
56+
shell: bash
57+
run: yarn lint-js
58+
- name: Lint solidity
59+
shell: bash
60+
run: yarn lint-solidity
61+
- name: Lint rust
62+
shell: bash
63+
run: yarn lint-rust

0 commit comments

Comments
 (0)