summaryrefslogtreecommitdiff
path: root/.forgejo/workflows/test.yml
blob: 691c96c981f18584989ecb2a57e51b42a5b772d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
on: [ push ]
jobs:
  test:
    runs-on: codeberg-tiny-lazy
    container:
       image: codeberg.org/fkooman/ci:latest
    steps:
      - name: Clone Repository
        run: git clone -b ${{ github.ref_name }} ${{ github.server_url }}/${{ github.repository }} .
      - name: Download Go deps
        run: GOPROXY=https://proxy.golang.org,direct go get ./...
      - name: Test Go
        run: unshare -r -n bash -c "ip link set lo up && make test"
      - name: Lint
        run: make lint