forked from metafates/mangal
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (34 loc) · 911 Bytes
/
test.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
name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
services:
flaresolverr:
image: ghcr.io/flaresolverr/flaresolverr:latest
ports:
- 8191:8191
env:
GOFLAGS: -mod=readonly
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{matrix.os}}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
steps:
- uses: actions/checkout@v4
- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v4
with:
go-version-file: go.mod
- name: Run test & coverage
run: go test -v ./... -race -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3