Skip to content

Support generating MAID Access Management JWTs #56

Support generating MAID Access Management JWTs

Support generating MAID Access Management JWTs #56

Workflow file for this run

name: Go
on:
push:
branches: [ main ]
pull_request:
types: [opened, reopened, synchronize]
jobs:
build-test:
name: Build, test, and format
strategy:
matrix:
go-version: [1.18.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: setup go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: go build -v ./...
- name: Start test docker containers
if: matrix.platform == 'ubuntu-latest'
run: |
docker-compose -f storage/mysql/docker-compose-test.yml up &
- name: Set
if: matrix.platform == 'ubuntu-latest'
run: echo "NANODEP_MYSQL_STORAGE_TEST=1" >> $GITHUB_ENV
- name: Test
run: go test -v -race ./...
- name: Format
if: matrix.platform == 'ubuntu-latest'
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi