Skip to content

Commit

Permalink
Merge pull request #83 from Workiva/GHA
Browse files Browse the repository at this point in the history
Migrates to GHA
  • Loading branch information
nickshoust-wf authored Apr 19, 2024
2 parents 9af7759 + d7cd2d1 commit 55d3967
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 33 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: "CI"

on:
pull_request:
push:
branches:
- 'master'
tags:
- '*'

permissions:
pull-requests: write
contents: write
id-token: write

jobs:
CI:
runs-on: ubuntu-latest
name: Tests on Go
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.15"

- name: Format
run: |
test -z $(go fmt ./...)
- name: Tidy
run: |
go mod download
test -z $(go mod tidy -v)
- name: Verify
run: |
go mod verify
- name: Build
run: |
go build ./...
- name: Test
run: |
go test ./...
- uses: anchore/sbom-action@v0
with:
path: ./
format: cyclonedx-json

33 changes: 0 additions & 33 deletions Dockerfile

This file was deleted.

0 comments on commit 55d3967

Please sign in to comment.