-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (34 loc) · 1011 Bytes
/
backend.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
name: backend
on: push
jobs:
test:
runs-on:
labels: ubuntu-latest-4-cores
steps:
- uses: actions/checkout@v3
- uses: extractions/setup-just@v1
- name: run tests
run: just test
timeout-minutes: 50
license:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: earthly/actions/setup-earthly@v1
- uses: actions/setup-node@v3
with:
node-version: '18'
- uses: extractions/setup-just@v1
- name: license checker
run: 'cd backend && npx license-checker --onlyAllow="MIT;ISC;Python-2.0;Apache-2.0;BSD;MPL;CC;Custom: http://github.com/dscape/statsd-parser;" --excludePrivatePackages'
lint:
runs-on:
labels: ubuntu-latest-4-cores
steps:
- uses: actions/checkout@v3
- uses: extractions/setup-just@v1
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: cd backend && yarn install
- run: cd backend && yarn run lint