-
Notifications
You must be signed in to change notification settings - Fork 310
33 lines (31 loc) · 1.01 KB
/
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
32
33
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@v4
- 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: Format proto files
run: tools/bin/mage proto:fmt
- name: Check for diff
run: tools/bin/mage git:diff