forked from casbin/casbin-pg-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 954 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
name: Test
on: push
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: library/postgres:15.1
ports:
- 5432:5432
env:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: test
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Checkout actions repository
uses: actions/checkout@v2
with:
repository: msales/github-actions
ref: master
token: ${{ secrets.GH_TOKEN }}
path: .github/actions/external
- name: Run the tests
id: test
uses: ./.github/actions/external/go-test
with:
org_token: ${{ secrets.GH_TOKEN }}
staticcheck: true
test: true
vet: true
staticcheck_version: latest
staticcheck_ignore: "ST1000,SA1019,ST1003"
race: true
parallel: true