-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (32 loc) · 1019 Bytes
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Pull Request
on: [push]
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 }}
XATA_WORKSPACE_ID: ${{ secrets.XATA_WORKSPACE_ID }}
- name: Integration tests
run: make integration-test
env:
XATA_API_KEY: ${{ secrets.XATA_API_KEY }}
XATA_WORKSPACE_ID: ${{ secrets.XATA_WORKSPACE_ID }}
- name: Cleanup
run: make clean-workspaces
env:
XATA_API_KEY: ${{ secrets.XATA_API_KEY }}
XATA_WORKSPACE_ID: ${{ secrets.XATA_WORKSPACE_ID }}