-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (33 loc) · 802 Bytes
/
test.yaml
File metadata and controls
42 lines (33 loc) · 802 Bytes
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
name: Build & Test
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- name: 📥 Monorepo install
uses: ./.github/actions/yarn-nm-install
- name: Lint
run: yarn lint -- --quiet
- name: Build
run: yarn build
env:
NODE_ENV: production
- name: Unit tests
run: yarn test
env:
NODE_ENV: test