init #12243
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 Test | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2.3.1 | |
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 | |
test-on-chrome: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2.3.1 | |
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: Install Chrome | |
uses: browser-actions/setup-chrome@latest | |
- name: Test with Chrome | |
uses: GabrielBB/xvfb-action@v1 | |
with: | |
run: npm run-script test | |
test-on-firefox: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2.3.1 | |
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: Install Firefox | |
uses: browser-actions/setup-firefox@latest | |
- name: Test with Firefox | |
uses: GabrielBB/xvfb-action@v1 | |
with: | |
run: npm run-script test:firefox |