Skip to content

Commit

Permalink
add test jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Pennebaker committed Oct 22, 2024
1 parent 111b492 commit facf05c
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test-futureproof-os.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: "Test-Futureproof-OS"
on: # yamllint disable-line rule:truthy
push:
pull_request:
# POSIX cron format
# https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html
schedule:
# Once every 5 minutes
# - cron: "*/5 * * * *"
# Once a day
- cron: "0 0 * * *"
jobs:
Test-Futureproof-OS:
runs-on: "ubuntu-latest"
env:
GOPATH: "/home/runner/go"
steps:
- run: "echo \"/usr/local/go/bin\" >> \"$GITHUB_PATH\""
- run: "echo \"${GOPATH}/bin\" >> \"$GITHUB_PATH\""
- uses: "actions/checkout@v4"
- run: "sudo apt-get update"
- run: "sudo apt-get install -y cargo curl make"
- run: "curl -LO https://go.dev/dl/go1.23.2.linux-amd64.tar.gz"
- run: "sudo tar -C /usr/local -xzf go1.23.2.linux-amd64.tar.gz"
- run: "make"
- run: "mage test"
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "Test"
on: # yamllint disable-line rule:truthy
push:
pull_request:
jobs:
Test:
runs-on: "ubuntu-24.04"
env:
GOPATH: "/home/runner/go"
steps:
- run: "echo \"/usr/local/go/bin\" >> \"$GITHUB_PATH\""
- run: "echo \"${GOPATH}/bin\" >> \"$GITHUB_PATH\""
- uses: "actions/checkout@v4"
- run: "sudo apt-get update"
- run: "sudo apt-get install -y cargo curl make"
- run: "curl -LO https://go.dev/dl/go1.23.2.linux-amd64.tar.gz"
- run: "sudo tar -C /usr/local -xzf go1.23.2.linux-amd64.tar.gz"
- run: "make"
- run: "mage test"

0 comments on commit facf05c

Please sign in to comment.