Make auth work on next preview #504
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: Continuous Integration | |
on: | |
push: | |
jobs: | |
run-linters: | |
name: Run linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v2 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Install dependencies | |
run: npm ci --legacy-peer-deps | |
- name: Build | |
run: npm run build | |
- name: Test | |
run: npm run test | |
- name: Typescript compile | |
run: npm run tsc | |
- name: Run linters | |
uses: wearerequired/lint-action@v1 | |
with: | |
github_token: ${{ secrets.github_token }} | |
# Eslint | |
eslint: true | |
eslint_dir: src/ | |
eslint_extensions: js,jsx,ts,tsx | |
# Prettier | |
prettier: true | |
prettier_dir: src/ | |
# Stylelint | |
stylelint: true | |
stylelint_dir: src/ | |
stylelint_extensions: less |