Bump ws and puppeteer #324
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 site | |
on: [push] | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: run linting & tests | |
uses: cypress-io/github-action@v5 | |
with: | |
start: npm run test | |
env: | |
CYPRESS_baseUrl: http://localhost:8080/ | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: test-artifacts | |
path: | | |
./cypress/videos/ | |
./mochawesome-report/ | |
build-and-deploy: | |
needs: run-tests | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: npm install | |
- name: Build the site | |
run: npm run build | |
- name: Deploy the site | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist | |
update-resume-gist: | |
needs: build-and-deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Update Resume Gist | |
uses: exuanbo/actions-deploy-gist@v1 | |
with: | |
token: ${{ secrets.TOKEN }} | |
gist_id: 1ab255457bdc9c22a4453ad383bc3108 | |
file_path: resume/resume.clintp.json |