Skip to content

Commit 295b52f

Browse files
committed
.github: fix workflows to new pattern
Signed-off-by: Christian Stewart <christian@aperture.us>
1 parent 731392c commit 295b52f

File tree

2 files changed

+34
-29
lines changed

2 files changed

+34
-29
lines changed
Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: "CodeQL"
1+
name: 'CodeQL'
22

33
on:
44
push:
5-
branches: [ "master" ]
5+
branches: ['master']
66
pull_request:
77
# The branches below must be a subset of the branches above
8-
branches: [ "master" ]
8+
branches: ['master']
99
schedule:
1010
- cron: '41 13 * * 6'
1111

@@ -24,34 +24,37 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
language: [ 'go', 'javascript' ]
27+
language: ['go', 'javascript']
2828
go: ['1.25']
2929
node: [25.x]
3030
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
3131
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3232

3333
steps:
34-
- name: Checkout repository
35-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
36-
37-
- name: Setup Go ${{ matrix.go }}
38-
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
39-
with:
40-
go-version: ${{ matrix.go }}
41-
42-
- name: Setup Node.JS ${{ matrix.node }}
43-
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
44-
with:
45-
node-version: ${{ matrix.node }}
46-
cache: 'yarn'
47-
48-
- name: Initialize CodeQL
49-
uses: github/codeql-action/init@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0
50-
with:
51-
languages: ${{ matrix.language }}
52-
53-
- name: Autobuild
54-
uses: github/codeql-action/autobuild@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0
55-
56-
- name: Perform CodeQL Analysis
57-
uses: github/codeql-action/analyze@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0
34+
- name: Checkout repository
35+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
36+
37+
- name: Setup Go ${{ matrix.go }}
38+
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
39+
with:
40+
go-version: ${{ matrix.go }}
41+
42+
- name: Setup Node.JS ${{ matrix.node }}
43+
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
44+
with:
45+
node-version: ${{ matrix.node }}
46+
47+
- uses: oven-sh/setup-bun@v2
48+
49+
- run: bun install
50+
51+
- name: Initialize CodeQL
52+
uses: github/codeql-action/init@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0
53+
with:
54+
languages: ${{ matrix.language }}
55+
56+
- name: Autobuild
57+
uses: github/codeql-action/autobuild@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0
58+
59+
- name: Perform CodeQL Analysis
60+
uses: github/codeql-action/analyze@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ jobs:
2525
with:
2626
go-version: ${{ matrix.go }}
2727

28+
- uses: oven-sh/setup-bun@v2
29+
2830
- name: Release
29-
run: make release
31+
run: bun run go:aptre -- release run
3032
env:
3133
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)