-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.28 KB
/
Copy pathci.yml
File metadata and controls
37 lines (34 loc) · 1.28 KB
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
name: CI
# This is the required check on every push and PR: it builds every package
# and runs each package's tests. If either fails, the check fails.
#
# Not every package has real tests yet. The ones that don't just print a
# message and exit successfully for now - that way every package has a
# test script to run, and we can fill in real tests over time without
# changing this workflow. github-actions-grafana-jump does have real tests
# (`node --test test/*.test.js`).
#
# Building and testing is all this workflow does. Publishing the built
# files as a GitHub Release happens separately, in release.yaml, when
# code lands on main.
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# mise.toml pins node and yarn (in lockstep with .nvmrc and
# package.json's packageManager), so CI and local checkouts run the same
# toolchain without a separate corepack step.
- uses: jdx/mise-action@3c2e0cf82a5b2e5249f0d3635a4d83d0ae861518 # v4.2.5
with:
install: true
cache: true
- name: Install dependencies
run: yarn install --immutable
- name: Build
run: yarn run build
- name: Test
run: yarn run test