Skip to content

Add labels to challenge instance containers #7

Add labels to challenge instance containers

Add labels to challenge instance containers #7

Workflow file for this run

name: Go
on:
push:
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CMGR_LOGGING: debug
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- ubuntu-20.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.16
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: go get -v -t -d ./...
- name: Golang linting
run: go vet ./...
- name: Build
run: mkdir bin && go build -v -ldflags "-X github.com/picoCTF/cmgr/cmgr.version=`git describe --tags`" -o bin ./...
- name: Unit Tests
run: go test -v ./...
- name: Prepare Integration Tests
run: mkdir artifacts
- name: Integration Tests
run: CMGR_DIR=examples CMGR_ARTIFACT_DIR=artifacts bin/cmgr test --require-solve examples