-
Notifications
You must be signed in to change notification settings - Fork 16
66 lines (55 loc) · 1.46 KB
/
ci.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
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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: "14.x"
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build and test frontend
run: yarn build
- name: Setup Go environment
uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: Test backend
uses: magefile/mage-action@v3
with:
version: latest
args: coverage
- name: Build backend
uses: magefile/mage-action@v3
with:
version: latest
args: buildAll
- name: End to end test
run: |
docker network create trino
docker run \
--rm --detach \
--name trino \
--net trino \
trinodb/trino:468
docker run \
--rm --detach \
--name grafana \
--net trino \
--publish 3000:3000 \
--volume "$(pwd):/var/lib/grafana/plugins/trino" \
--env "GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=trino-datasource" \
grafana/grafana:11.4.0
npx tsc -p tsconfig.json --noEmit
npx playwright install
npx playwright test