Export locales so consumers can set language without duplicating code #208
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Read .nvmrc | |
run: echo NVMRC=`cat .nvmrc` >> $GITHUB_ENV | |
- name: Setup Node.js | |
uses: actions/setup-node@v2.4.1 | |
with: | |
node-version: ${{ env.NVMRC }} | |
- name: Install packages | |
run: npm i | |
- name: Check formatter | |
run: npm run prettier:check | |
- name: Check linter | |
run: npm run lint | |
- name: Check tests | |
run: npm run test | |
- name: Check build | |
run: npm run build |