Skip to content

Commit

Permalink
test gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Pennebaker committed Jan 3, 2024
1 parent 3df1dad commit e839ef4
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: "Audit"
on: # yamllint disable-line rule:truthy
push:
pull_request:
schedule:
- cron: "0 0 * * 1"
jobs:
Audit:
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 install -y cargo make npm wget"
- run: "wget https://go.dev/dl/go1.21.5.linux-amd64.tar.gz"
- run: "sudo tar -C /usr/local -xzf go1.21.5.linux-amd64.tar.gz"
- run: "make"
- run: "mage audit"
env:
SNYK_TOKEN: "${{ secrets.SNYK_TOKEN }}"
19 changes: 19 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: "Lint"
on: # yamllint disable-line rule:truthy
push:
pull_request:
jobs:
Lint:
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 install -y cargo make npm wget"
- run: "wget https://go.dev/dl/go1.21.5.linux-amd64.tar.gz"
- run: "sudo tar -C /usr/local -xzf go1.21.5.linux-amd64.tar.gz"
- run: "make"
- run: "mage lint"
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: "Test"
on: # yamllint disable-line rule:truthy
push:
pull_request:
jobs:
Test:
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 install -y cargo make npm wget"
- run: "wget https://go.dev/dl/go1.21.5.linux-amd64.tar.gz"
- run: "sudo tar -C /usr/local -xzf go1.21.5.linux-amd64.tar.gz"
- run: "make"
- run: "mage test"

0 comments on commit e839ef4

Please sign in to comment.