-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (52 loc) · 1.13 KB
/
Copy pathrun_tests.yml
File metadata and controls
52 lines (52 loc) · 1.13 KB
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
46
47
48
49
50
51
52
name: Tests
on:
push:
branches:
- '!master'
pull_request:
branches:
- '**'
jobs:
commit-lint:
name: Lint commit
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v1
lint:
name: "Lint"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Setup node"
uses: actions/setup-node@v4
with:
node-version: '20'
- name: "Install dependencies"
run: |
npm ci
shell: bash
- name: "Lint infrastructure"
run: |
npm run lint
shell: bash
- name: "Run prettier in test mode"
run: |
npm run prettier:check
shell: bash
lock-diff:
name: Lock diff
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Show lock diff
uses: pixelfusion/actions/package-diff@v1