-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from xataio/philkra-patch-1
Add action to run on PR
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |