-
-
Notifications
You must be signed in to change notification settings - Fork 37
33 lines (33 loc) · 1.06 KB
/
master-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
---
name: test
on:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.*
- name: Checkout code
uses: actions/checkout@v4
- name: Fetch all tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Last tag
run: git describe --tags $(git rev-list --tags --max-count=1) --always
- name: Test
env:
SERVICE_TOKEN: ${{ secrets.SERVICE_TOKEN }}
WIDGET_TOKEN: ${{ secrets.WIDGET_TOKEN }}
GROUP_TOKEN: ${{ secrets.GROUP_TOKEN }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
USER_TOKEN: ${{ secrets.USER_TOKEN }}
MARUSIA_TOKEN: ${{ secrets.MARUSIA_TOKEN }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
GROUP_ID: ${{ secrets.GROUP_ID }}
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }}
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic -p=1 ./...
- name: codecov
run: bash <(curl -s https://codecov.io/bash)