-
Notifications
You must be signed in to change notification settings - Fork 310
31 lines (29 loc) · 967 Bytes
/
general.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
name: General
on: pull_request
jobs:
quality:
name: Code Quality
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install Go and Dependencies
uses: ./.github/actions/install-go-and-deps
- name: Build Mage
uses: ./.github/actions/build-mage
- name: Install Node and Dependencies
uses: ./.github/actions/install-node-and-deps
- name: Editor config
uses: snow-actions/[email protected]
# TODO: Fix EditorConfig errors and remove
# https://github.com/TheThingsNetwork/lorawan-stack/issues/2723
continue-on-error: true
- name: Check headers
run: tools/bin/mage headers:check
- name: Fix common spelling mistakes
run: tools/bin/mage dev:misspell
- name: Format SQL files
run: tools/bin/mage sql:fmt
- name: Check for diff
run: tools/bin/mage git:diff