forked from cayleygraph/cayley
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 1.07 KB
/
tests.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
name: Tests
on:
push:
branches: [ "master", "aperture" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master", "aperture" ]
# Builds images for target boards.
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.20']
steps:
- name: Harden Runner
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Go ${{ matrix.go }}
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: ${{ matrix.go }}
- name: Lint Go
# note: linter currently produces lots of errors.
# run the linter but mark it as success even if it does not pass.
run: make lint || true
- name: Test Go
run: make test
timeout-minutes: 15