-
Notifications
You must be signed in to change notification settings - Fork 6
66 lines (61 loc) · 1.51 KB
/
QA.yml
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
57
58
59
60
61
62
63
64
65
66
# Copyright (c) 2023, Serhat Şevki Dinçer.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
name: QA
on:
push:
branches: [ main, dev ]
permissions:
contents: read
env:
GOAMD64: v2
jobs:
Tests:
strategy:
max-parallel: 2
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
go: [ oldstable, stable ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Run Tests with Coverage
run: go test -timeout 1h -v -cover
Analysis:
needs: Tests
permissions:
actions: read
security-events: write
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Initialize
uses: github/codeql-action/init@v3
with:
languages: go
- name: Analyze
uses: github/codeql-action/analyze@v3
Tuning:
needs: Analysis
if: github.ref_name == 'dev'
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Tune Params
run: go test -timeout 3h -tags tuneparam