-
Notifications
You must be signed in to change notification settings - Fork 37
30 lines (28 loc) · 999 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
name: run tests
on: [pull_request, workflow_dispatch, push]
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: yitsushi/devmapper-containerd-action@bfb86f4fe3121aeb8a1b06601b3f07d064665204 # v1.0.1
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version-file: "${{ github.workspace }}/go.mod"
check-latest: true
cache: false
- name: Build
run: make build
- name: Build e2e
run: make compile-e2e
- name: Test with coverage
run: |
export CTR_SOCK_PATH=/var/run/containerd/containerd.sock
make test-with-cov
env:
CTR_SOCK_PATH: /run/containerd/containerd.sock
# - name: Upload coverage to Codecov
# run: bash <(curl -s https://codecov.io/bash)
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}