Repository navigation
64 lines (54 loc) · 1.69 KB
/
Copy pathci-web.yml
File metadata and controls
64 lines (54 loc) · 1.69 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
56
57
58
59
60
61
62
63
64
---
name: CI-Web (called)
permissions: {}
on:
workflow_call:
inputs:
release_version:
description: 'Release version produced by the parent workflow.'
required: true
type: string
secrets:
CODECOV_TOKEN:
required: false
jobs:
test:
name: Vitest
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup node
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
- name: Update package.json
env:
RELEASE_VERSION: ${{ inputs.release_version }}
run: npm version "${RELEASE_VERSION}" --no-git-tag-version
- name: Install npm dependencies
run: npm ci --ignore-scripts
- name: Debug install
if: always()
run: cat "${HOME}/.npm/_logs/*-debug-0.log" || true
- name: Test
id: test
run: npm test
- name: Build
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: npm run build
- name: Publish (dry run)
# PR versions can be lower than the latest published version, so select an explicit tag.
run: npm publish --dry-run --tag ci --ignore-scripts
- name: Upload coverage artifact
if: >-
always() &&
(steps.test.outcome == 'success' || steps.test.outcome == 'failure')
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: coverage-Web-UI
path: |
coverage/coverage-final.json
junit.xml
if-no-files-found: error