Skip to content

Commit

Permalink
Run golang tests on each PR
Browse files Browse the repository at this point in the history
  • Loading branch information
damyan committed Jan 22, 2024
1 parent 4e14bd5 commit 62420c6
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Pull Request Code test

on:
pull_request_target:
paths-ignore:
- 'docs/**'
- '**/*.md'

jobs:
checks:
name: run
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
- run: |
mkdir -p ~/.ssh
for key in rsa ecdsa ed25519; do
ssh-keyscan -t $key github.com 2>/dev/null >> ~/.ssh/known_hosts
done
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.BOT_PRIVATE_KEY }}
- run: ./hack/setup-git-redirect.sh
- run: make build
- run: make test

0 comments on commit 62420c6

Please sign in to comment.