generated from grafana/grafana-starter-datasource-backend
-
Notifications
You must be signed in to change notification settings - Fork 68
54 lines (45 loc) · 1.04 KB
/
run-frontend-tests.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
name: run-frontend-tests
on:
push:
branches:
- v1
- main
pull_request:
branches:
- v1
- main
schedule:
- cron: '0 9 1 * *'
jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
go:
- '1.20.x'
steps:
- uses: actions/checkout@v4
- name: Setup packages
id: setup-packages
run: |
sudo apt-get update -y
sudo apt-get install -y zip zstd jq git
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version-file: '.nvmrc'
- name: Install Go ${{ matrix.go }}
uses: actions/[email protected]
with:
go-version: ${{ matrix.go }}
- name: Install yarn dependencies
run: yarn install
env:
NODE_OPTIONS: '--max_old_space_size=4096'
- name: Build
run: go build -v ./...
- name: Build Frontend
run: yarn build
env:
NODE_OPTIONS: '--max_old_space_size=4096'