-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (53 loc) · 1.58 KB
/
Copy pathci.yml
File metadata and controls
56 lines (53 loc) · 1.58 KB
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
54
55
56
name: CI
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
verify:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
cache: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
package-manager-cache: false
- if: matrix.os == 'ubuntu-latest'
run: test -z "$(gofmt -l $(git ls-files '*.go'))"
- if: matrix.os == 'ubuntu-latest'
run: go vet ./...
- name: Test release scripts
if: matrix.os == 'ubuntu-latest'
run: |
node --test \
scripts/release-assets.test.js \
scripts/release-workflow.test.js \
scripts/verify-release-assets.test.js
- run: go test ./...
- name: Package smoke test
shell: bash
run: bash scripts/package_test.sh
race:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
cache: false
- run: go test -race ./...