forked from a-a-ron/ps-github-foundations-github-copilot
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (26 loc) · 698 Bytes
/
node.js.yml
File metadata and controls
27 lines (26 loc) · 698 Bytes
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
name: Node.js CI
on:
workflow_dispatch:
# push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependancies
run: npm install
- name: Run tests
run: npm test
- name: Archive test results to GitHub Packages
uses: actions/upload-artifact@v3
with:
name: ${{ github.ref_name }}-${{ github.run_id }}-${{ matrix.node-version }}-test-results
path: ./out/test-results.xml