-
Notifications
You must be signed in to change notification settings - Fork 146
42 lines (35 loc) · 827 Bytes
/
ci.yml
File metadata and controls
42 lines (35 loc) · 827 Bytes
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
name: CI
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: Go 1.25 on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.25.x"
- name: Lint
if: matrix.os == 'ubuntu-latest'
run: |
if [ -n "$(gofmt -l .)" ]; then
echo "Go code is not formatted. Run 'gofmt -w .'"
exit 1
fi
go vet ./...
- name: Install
run: go install ./cmd/devd
- name: Test
run: |
go test -v -race ./...
go run ./cmd/devd --help