Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #187
Workflow file for this run
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: | |
branches: ['**'] | |
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@v3 | |
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/[email protected] | |
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 |