-
Notifications
You must be signed in to change notification settings - Fork 24
41 lines (41 loc) · 984 Bytes
/
format.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
name: format
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
lua:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check formatting
uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check .
go:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
go-version: [1.24] # rc versions are defined like 1.24.0-rc.3
env:
GOTOOLCHAIN: local
GOTOOLCHAIN_RESOLVE_PRIVATE: 1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install tools
run: make install-format-go
- name: Formatting check
run: make format-go
- name: Check for git diff
run: make git-diff