-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (45 loc) · 1.52 KB
/
test.yaml
File metadata and controls
55 lines (45 loc) · 1.52 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
51
52
53
54
55
name: Test
on:
pull_request:
# Allow calling manually from GitHub
workflow_dispatch:
# Allow workflow to be called by another workflow
workflow_call:
jobs:
test:
name: Lint, Type Check, and Test
runs-on: ${{ vars.RUNS_ON }}
timeout-minutes: 20
permissions:
contents: read
outputs:
short-commit-hash: ${{ steps.workflow-variables.outputs.short-commit-hash }}
nuxt-site-env: ${{ steps.workflow-variables.outputs.nuxt-site-env }}
branch-name: ${{ steps.workflow-variables.outputs.branch-name }}
commit-message: ${{ steps.workflow-variables.outputs.commit-message }}
commit-hash: ${{ steps.workflow-variables.outputs.commit-hash }}
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Setup PNPM with Dependencies
uses: ./.github/actions/setup-pnpm-with-dependencies/
with:
force-install: true
save-cache: true
- name: Lint
run: pnpm lint
- name: Typecheck
run: pnpm typecheck
- name: Test
run: pnpm test
- name: Build
run: pnpm build
- name: Upload build artifacts
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: vite-plugins-build-output-artifact
path: |
/
!/node_modules/**
include-hidden-files: 'true'