-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (42 loc) · 1.1 KB
/
linting.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
46
47
48
49
50
51
52
53
name: Linting and formatting
permissions:
contents: write
on:
push:
jobs:
lint-frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install bun
run: |
curl -fsSL https://bun.sh/install | bash
echo "$HOME/.bun/bin" >> $GITHUB_PATH
- name: Install dependencies
run: bun install
- name: Run eslint
# If the actions don't fail that means linter passed
run: bun run lint
- name: Add & Commit
uses: EndBug/add-and-commit@v9.1.3
with:
default_author: github_actions
format-backend:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Go 1.21.x
uses: actions/setup-go@v4
with:
go-version: 1.21.x
- name: Format backend
working-directory: ./backend/
run: |
go mod download
go fmt ./...
- name: Add & Commit
uses: EndBug/add-and-commit@v9.1.3
with:
default_author: github_actions