-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.45 KB
/
Copy pathnode.js.yml
File metadata and controls
55 lines (46 loc) · 1.45 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: Node.js CI
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
node-version: [24.x]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Download artifact smws codes
uses: ash-shepard/fetch-gh-release-asset@464698915cc02d0a498c92cbeb98312234a8f9b9
with:
token: ${{ secrets.GITHUB_TOKEN }}
file: "data.json"
repo: "elliottback/SMWS_Codes"
target: "./data.json"
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
node-version: ${{ matrix.node-version }}
- name: Install stuff
run: npm ci --ignore-scripts
- name: build
run: npm run ci --ignore-scripts
- name: Install chrome
run: npx --no-install @puppeteer/browsers install chrome@152.0.7977.82
- name: Start Xvfb and Test
env:
PUPPETEER_EXEC_PATH: ${{ github.workspace }}/chrome/linux-152.0.7977.82/chrome-linux64/chrome
run: |
Xvfb :99 -screen 0 1920x1080x24 &
export DISPLAY=:99
npm test
- name: Archive artifacts
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
if: always()
with:
name: dist
if-no-files-found: error
path: |
dist/*.png