-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (42 loc) · 1015 Bytes
/
test.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
name: Continuous Integration
on:
pull_request:
branches: ['main']
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
tags:
description: 'Test scenario tags'
required: false
type: boolean
environment:
description: 'Environment to run tests against'
type: environment
required: false
jobs:
lint:
runs-on: ubuntu-20.04
steps:
- name: Checkout pull request
uses: actions/checkout@v4
- name: Reuse setup action
uses: ./.github/actions/setup
- name: Test with eslint
run: yarn lint
test:
runs-on: ubuntu-20.04
steps:
- name: Checkout pull request
uses: actions/checkout@v4
- name: Reuse setup action
uses: ./.github/actions/setup
- name: Test with vitest
run: yarn test