forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 932 Bytes
/
github-test.yaml
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
name: GitHub Actions - Test
on:
push:
branches:
- main
paths:
- .github/**
pull_request:
paths:
- .github/**
workflow_dispatch:
permissions:
contents: read
defaults:
run:
shell: bash
working-directory: ./.github
jobs:
test:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
sparse-checkout: |
.github
- name: Setup Node 20 and install deps
uses: ./.github/actions/setup-node-install-deps
with:
# actions/github-script@v7 uses Node 20
node-version: 20.x
working-directory: ./.github
- name: Run tests
run: npm run test:ci
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: ./.github/coverage
if-no-files-found: ignore