Debian Codegraph @

.github/workflows/main.yml

raw
1 name: Push
2
3 on:
4 push:
5 branches: [ master ]
6 pull_request:
7 branches: [ master ]
8
9 jobs:
10
11 build:
12 name: CI
13 runs-on: ubuntu-latest
14 steps:
15
16 - name: Set up Go 1.x
17 uses: actions/setup-go@v2
18 with:
19 # Run on the latest minor release of Go 1.17:
20 go-version: ^1.17
21 id: go
22
23 - name: Check out code into the Go module directory
24 uses: actions/checkout@v2
25
26 - name: Ensure all files were formatted as per gofmt
27 run: |
28 [ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ] || { gofmt -l $(find . -name '*.go'); false; }
29
30 - name: Install dependency Debian packages
31 run: sudo apt-get install debian-archive-keyring
32
33 - name: Run tests
34 run: |
35 /usr/lib/apt/apt-helper download-file https://people.debian.org/~stapelberg/mandoc-static/mandoc mandoc SHA256:91d1f1a6120d0fcccd7590645dcb852ad83a7ad59523e6fd026a64b1c913a102
36 /usr/lib/apt/apt-helper download-file https://people.debian.org/~stapelberg/mandoc-static/mandocd mandocd SHA256:9c30e64b5721ae223e18449d4c82b30919cf11e423de160beff4724cefcdd02e
37 chmod +x mandoc mandocd
38 PATH=$PWD:$PATH go test ./...