-
Notifications
You must be signed in to change notification settings - Fork 42
45 lines (41 loc) · 992 Bytes
/
lint-and-test.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
45
name: Run Tests, Lint, and Build
on:
push:
branches: [main]
pull_request:
branches: [main]
paths-ignore:
- '**.md'
- 'LICENSE'
- 'CODEOWNERS'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout and Setup Node
uses: ./.github/actions/checkout-and-setup
- name: Lint
run: npm run --if-present lint
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout and Setup Node
uses: ./.github/actions/checkout-and-setup
- name: Run Unit Tests
run: npm test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout and Setup Node
uses: ./.github/actions/checkout-and-setup
- name: Build
run: npm run --if-present build