Skip to content

Commit d7ecbe7

Browse files
authored
migrate to github actions (#78)
* migrate to github actions * x * x * x * x * x * x * x * x * x * x * x * x * m * x
1 parent 18c5b52 commit d7ecbe7

File tree

14 files changed

+3134
-1748
lines changed

14 files changed

+3134
-1748
lines changed

.github/workflows/ci.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
schedule:
11+
# Run daily at 2 AM UTC to check for new vulnerabilities
12+
- cron: "0 2 * * *"
13+
14+
permissions:
15+
contents: read
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
test:
23+
timeout-minutes: 15
24+
runs-on: ubuntu-latest
25+
strategy:
26+
matrix:
27+
go-version: [1.25.x, 1.24.x]
28+
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@v6
32+
with:
33+
persist-credentials: false
34+
35+
- name: Set up Go
36+
uses: actions/setup-go@v6
37+
with:
38+
go-version: ${{ matrix.go-version }}
39+
cache: true
40+
41+
- name: Set up Node.js
42+
uses: actions/setup-node@v6
43+
with:
44+
node-version: "latest"
45+
cache: "npm"
46+
47+
- name: Install dependencies and build
48+
run: |
49+
npm ci --ignore-scripts
50+
cd test/files && go mod download && go mod tidy
51+
cd ../..
52+
make
53+
54+
- name: Run tests
55+
run: make CI_TAGS="--tags=noresinit" test
56+
57+
- name: Run govulncheck
58+
uses: golang/govulncheck-action@v1
59+
with:
60+
go-version-input: ${{ matrix.go-version }}
61+
work-dir: test/files
62+
63+
- name: Check for uncommitted changes
64+
run: git diff --exit-code

.travis.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ build-stamp: \
1616
date > $@
1717

1818
install:
19-
npm install
20-
go get -t -v ./...
19+
npm install --ignore-scripts
20+
cd test/files && go mod download && go mod tidy
2121

2222
test: build-stamp
2323
npm run test:unit

lib/go_emit.js

Lines changed: 3 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)