ci: adapt workflows for Forgejo Actions (update actions versions, add Chrome install)
Some checks failed
Publish to NPM / build (push) Failing after 21s
Some checks failed
Publish to NPM / build (push) Failing after 21s
This commit is contained in:
parent
b8de85a4f9
commit
553755e67e
2 changed files with 31 additions and 15 deletions
23
.github/workflows/tests.yml
vendored
23
.github/workflows/tests.yml
vendored
|
|
@ -9,13 +9,24 @@ on:
|
|||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
node-version: [21.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '21.x'
|
||||
|
||||
- name: Install Chrome
|
||||
run: |
|
||||
apt-get update -qq
|
||||
apt-get install -y -qq wget gnupg > /dev/null 2>&1
|
||||
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - > /dev/null 2>&1
|
||||
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list
|
||||
apt-get update -qq
|
||||
apt-get install -y -qq google-chrome-stable > /dev/null 2>&1
|
||||
echo "CHROME_BIN=$(which google-chrome-stable)" >> $GITHUB_ENV
|
||||
|
||||
- run: npm install
|
||||
- run: npm run test:headless:singleRun
|
||||
- run: npm run test:headless:singleRun
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue