Use powers of ten for large numbers (#17) #74
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: Bristemouth UI Test | |
on: | |
# Run on all pull requests and on pushes to main. | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
env: | |
surge_url: bristemouth-ui-${{ github.event.pull_request.number }}.surge.sh | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- uses: actions/cache@v2 | |
id: yarn-cache | |
with: | |
path: | | |
**/node_modules | |
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install dependencies if needed. | |
id: install | |
if: steps.yarn-cache.outputs.cache-hit != 'true' | |
run: | | |
yarn install --frozen-lockfile | |
- name: Run website tests | |
if: steps.install.conclusion == 'skipped' || steps.install.conclusion == 'success' | |
run: yarn test |