Merge pull request #70 from floriscornel/dependabot/github_actions/ac… #15
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: Main Push Workflow | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
cache: "yarn" | |
- name: Install project dependencies | |
run: yarn | |
- name: Run tests | |
run: yarn test | |
- name: Update Code Coverage | |
run: yarn cov:send | |
- name: Update docs | |
run: yarn doc:html | |
- name: Deploy with gh-pages | |
run: | | |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
npx gh-pages -d build/docs -u "github-actions-bot <support+actions@github.com>" -m "[ci skip] Updates" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |