File: ci-unit-test.yml

package info (click to toggle)
golang-github-containerd-accelerated-container-image 1.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,500 kB
  • sloc: sh: 351; python: 59; makefile: 30
file content (36 lines) | stat: -rw-r--r-- 793 bytes parent folder | download
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
name: Unit Test
on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - 'main'

jobs:
  unit-test:
    name: Unit Test
    runs-on: ubuntu-22.04
    timeout-minutes: 10

    steps:
      - uses: actions/checkout@v6
        with:
          path: src/github.com/containerd/accelerated-container-image
          fetch-depth: 100

      - name: install Go
        uses: actions/setup-go@v6
        with:
          go-version: '1.26'

      - name: set env
        shell: bash
        run: |
          echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
          echo "${{ github.workspace }}/bin" >> $GITHUB_PATH

      - name: unit test
        working-directory: src/github.com/containerd/accelerated-container-image
        run: |
          sudo GO_TESTFLAGS=-v make test