forked from nx-go/nx-go
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.24 KB
/
run-e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Run e2e tests
on: [pull_request]
jobs:
run_e2e:
name: Run e2e
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x]
go-version: [1.17.5, 1.18.0]
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: Install dependencies
uses: pnpm/[email protected]
with:
version: 6.24.3
run_install: |
- args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Run format check
run: pnpm run format:check -- --base=remotes/origin/main
- name: Run linter
run: pnpm run lint
- name: Run e2e test
run: pnpm run nx -- e2e nx-go-e2e