-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (39 loc) · 1.06 KB
/
test.yaml
File metadata and controls
50 lines (39 loc) · 1.06 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
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Test extension
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
shell: bash
steps:
- name: Setup Node
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a
with:
node-version: 20
- name: Setup Pixi
uses: prefix-dev/setup-pixi@273e4808c831936a3ce1a3080c829d9e153143d3
with:
pixi-version: v0.49.0
run-install: false
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Install dependencies
run: npm run ci
- name: Initialize Pixi workspace
working-directory: fixtures/pixi-workspace
run: pixi install --locked
- name: Build extension
run: npm run build
- name: Execute tests
run: xvfb-run -a npm test