Skip to content

Commit

Permalink
Update GitHub Actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
c032 committed Feb 9, 2024
1 parent 2bbaaf3 commit e23ce50
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 22 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"
22 changes: 0 additions & 22 deletions .github/workflows/tests.yml

This file was deleted.

0 comments on commit e23ce50

Please sign in to comment.