Merge pull request #2895 from microsoft/u/julairoldi/investigate-image #1418
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: Build and Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
persist-credentials: false | |
- name: Set Node Version | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 'v18.16.0' | |
- name: Install dependencies | |
run: yarn | |
- name: Build | |
run: npm run-script build:ci | |
- name: Install Firefox | |
uses: browser-actions/setup-firefox@latest | |
- name: Generate code coverage report | |
uses: GabrielBB/xvfb-action@v1 | |
with: | |
run: npm run-script test:coverage | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: dist/deploy |