Skip to content

Commit

Permalink
Add GitHub Actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
c032 committed Feb 9, 2024
1 parent 919bbbb commit 63538fb
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "check"

on:
workflow_call:
workflow_dispatch:

jobs:
vet:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"

- name: "`go vet`"
run: |
go vet ./...
test:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"

- name: "Run tests."
run: |
go test -v ./...
11 changes: 11 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "push"

on:
workflow_dispatch:
push:
branches:
- "master"

jobs:
check:
uses: "./.github/workflows/check.yml"

0 comments on commit 63538fb

Please sign in to comment.