Skip to content

Switch to context aware code #33

Switch to context aware code

Switch to context aware code #33

Workflow file for this run

name: testing
on:
push:
branches:
- 'main'
tags:
- 'v*'
pull_request:
permissions:
contents: read
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
id: go
- name: Get dependencies
run: |
go mod download
sudo apt-get install -y xorriso
- name: Build
run: |
go build -v .
unit:
name: Unit Tests
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- run: go test -v -cover ./...
test:
name: Integration Tests
needs: build
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
id: go
- name: Get dependencies
run: |
go mod download
- name: Make Test
run: |
make testacc
- name: Make Vet
run: |
make vet