Skip to content

Commit b16a1ab

Browse files
committed
Added tests
1 parent ed7b43a commit b16a1ab

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/merge.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
name: "Merge to main"
3+
on:
4+
push:
5+
branches: [ main ]
6+
jobs:
7+
analyze:
8+
name: Analyze
9+
runs-on: ubuntu-latest
10+
permissions:
11+
actions: read
12+
contents: read
13+
security-events: write
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
language: [ 'go' ]
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
- name: Initialize CodeQL
22+
uses: github/codeql-action/init@v2
23+
with:
24+
languages: ${{ matrix.language }}
25+
- name: Autobuild
26+
uses: github/codeql-action/autobuild@v2
27+
- name: Perform CodeQL Analysis
28+
uses: github/codeql-action/analyze@v2
29+
test:
30+
name: Test
31+
runs-on: ubuntu-latest
32+
strategy:
33+
matrix:
34+
go-version: [ '1.19', '1.20', '1.21.x' ]
35+
steps:
36+
- name: Checkout repository
37+
uses: actions/checkout@v4
38+
- name: Setup Go ${{ matrix.go-version }}
39+
uses: actions/setup-go@v4
40+
with:
41+
go-version: ${{ matrix.go-version }}
42+
- name: Run tests
43+
run: make test

0 commit comments

Comments
 (0)