summaryrefslogtreecommitdiff
path: root/.forgejo/workflows/test.yml
blob: c7885f063450ddba0f96fb5507a058480e38a3ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
on: [ push ]
jobs:
  test:
    runs-on: docker
    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