Update README.md #185
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
name: Check & test & build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
check: | |
name: Quality & security checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 'stable' | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Lint Go Code | |
run: make check | |
build_and_test: | |
name: Build & test | |
runs-on: ubuntu-latest | |
needs: [check] | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 'stable' | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Build | |
run: make build | |
- name: Run Pocketbase | |
run: | | |
make serve & | |
sleep 3 | |
- name: Run unit tests with | |
run: make test |