Tests #1535
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: Tests | |
on: | |
push: | |
branches: | |
- master | |
- ci | |
pull_request: | |
branches: | |
- '**' | |
schedule: | |
- cron: '28 0 * * *' | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
go-version: ["1.22", "1.23"] | |
edgedb-version: [stable, nightly] | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up go ${{ matrix.go-version }} | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Lint | |
run: | | |
go install | |
make lint && make gendocs-lint | |
make gen | |
if [[ "$(git status --porcelain)" != "" ]]; then | |
echo "Generated code is out of sync. Run make gen." | |
exit 1 | |
fi | |
- name: Build | |
run: | | |
go build . | |
- name: Setup WSL | |
if: ${{ startswith(matrix.os, 'windows') }} | |
uses: vampire/setup-wsl@v1 | |
with: | |
wsl-shell-user: edgedb | |
additional-packages: | |
ca-certificates | |
curl | |
- name: Install EdgeDB | |
uses: edgedb/setup-edgedb@v1 | |
with: | |
server-version: ${{ matrix.edgedb-version }} | |
- name: Test | |
run: | | |
make test | |
- name: Exercise Benchmarks | |
run: | | |
# run micro benchmarks to be sure they still work | |
make bench |