Skip to content

Commit 55806e3

Browse files
committed
Merge branch 'main' into license-headers
2 parents 4aae6ac + 4a4565b commit 55806e3

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/pr.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Pull Request
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Set up Go
11+
uses: actions/setup-go@v4
12+
with:
13+
go-version: '1.21'
14+
- name: Lint
15+
run: make lint
16+
- name: License check
17+
run: |
18+
curl -s https://raw.githubusercontent.com/lluissm/license-header-checker/master/install.sh | bash
19+
./bin/license-header-checker -a -r .github/license-header.txt . go && [[ -z `git status -s` ]]
20+
- name: Unit tests
21+
run: make test
22+
env:
23+
XATA_API_KEY: ${{ secrets.XATA_API_KEY }}
24+
- name: Integration tests
25+
run: make integration-test
26+
env:
27+
XATA_API_KEY: ${{ secrets.XATA_API_KEY }}
28+
- name: Cleanup
29+
run: make clean-workspaces
30+
env:
31+
XATA_API_KEY: ${{ secrets.XATA_API_KEY }}

0 commit comments

Comments
 (0)