Bump cross-spawn from 7.0.3 to 7.0.6 #199
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test, build and Deploy | |
on: [push] | |
permissions: | |
contents: write | |
jobs: | |
test-and-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install packages | |
run: yarn install | |
- name: Run tests | |
run: | | |
sudo apt-get install xvfb | |
xvfb-run --auto-servernum yarn test | |
- name: Report test results | |
uses: mikepenz/action-junit-report@v3 | |
with: | |
report_paths: '**/TESTS-*.xml' | |
- name: Build for GitHub pages | |
run: | | |
yarn build-gh-pages | |
cp 404header.html dist/sr-app/404.html | |
cat dist/sr-app/index.html >> dist/sr-app/404.html | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build-artifacts | |
path: dist/sr-app | |
deploy: | |
needs: test-and-build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Download build artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: build-artifacts | |
path: dist/sr-app | |
- name: Deploy to gh-pages branch | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: dist/sr-app |