Skip to content

Commit

Permalink
Merge pull request #24 from xataio/philkra-patch-1
Browse files Browse the repository at this point in the history
Add action to run on PR
  • Loading branch information
philkra authored Nov 7, 2023
2 parents 6ab6936 + 6f60293 commit 4a4565b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Pull Request

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Lint
run: make lint
- name: License check
run: |
curl -s https://raw.githubusercontent.com/lluissm/license-header-checker/master/install.sh | bash
./bin/license-header-checker -a -r .github/license-header.txt . go && [[ -z `git status -s` ]]
- name: Unit tests
run: make test
env:
XATA_API_KEY: ${{ secrets.XATA_API_KEY }}
- name: Integration tests
run: make integration-test
env:
XATA_API_KEY: ${{ secrets.XATA_API_KEY }}
- name: Cleanup
run: make clean-workspaces
env:
XATA_API_KEY: ${{ secrets.XATA_API_KEY }}

0 comments on commit 4a4565b

Please sign in to comment.