-
Notifications
You must be signed in to change notification settings - Fork 4
67 lines (57 loc) · 1.61 KB
/
tests.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
# Skip tests when doing a release to avoid the workflow race
# when the release PR gets merged by the bot.
if: needs.prep.outputs.version == 0
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-2019]
edgedb-version: ["stable"]
include:
- os: ubuntu-latest
edgedb-version: "nightly"
- os: ubuntu-latest
edgedb-version: "3" # LTS
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 50
submodules: true
- name: Setup WSL
if: ${{ matrix.os == 'windows-2019' }}
uses: vampire/[email protected]
with:
wsl-shell-user: edgedb
additional-packages: ca-certificates
curl
- name: Set up Dart
uses: dart-lang/setup-dart@v1
- name: Install dependencies
run: dart pub get
- name: Lint
if: ${{ matrix.os == 'ubuntu-latest' && matrix.edgedb-version == 'stable' }}
run: dart analyze && dart run tool/gen_docs.dart --lintMode
- name: Install EdgeDB
uses: edgedb/setup-edgedb@v1
with:
server-version: ${{ matrix.edgedb-version }}
- name: Run functional tests
run: |
dart run test/run.dart
# This job exists solely to act as the test job aggregate to be
# targeted by branch policies.
regression-tests:
name: "Regression Tests"
needs: [test]
runs-on: ubuntu-latest
steps:
- run: echo OK