Add imgref
module that parses ostree-container image references
#48
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: read | |
jobs: | |
test-build: | |
name: test build | |
strategy: | |
matrix: | |
go-version: [1.17.x, 1.18.x, 1.19.x] | |
os: [ubuntu-latest] | |
include: | |
- go-version: 1.19.x | |
os: macos-latest | |
- go-version: 1.19.x | |
os: windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Build | |
run: make | |
- name: Test | |
run: make test | |
- name: Run linter | |
uses: golangci/golangci-lint-action@v3 | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
with: | |
version: v1.48.0 | |
args: -E=gofmt --timeout=30m0s |