Add screenshots to front page carousel #209
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: Test | |
on: | |
pull_request: | |
branches: [ develop, release ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.head.repo.owner.login == github.repository_owner }} | |
name: Lint | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js (.nvmrc) | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Lint | |
uses: wearerequired/[email protected] | |
with: | |
github_token: ${{ secrets.github_token }} | |
eslint: true | |
eslint_args: "--max-warnings 0" | |
stylelint: true | |
stylelint_args: "--max-warnings 0" | |
stylelint_extensions: "css,sass,scss" | |
build: | |
runs-on: ubuntu-latest | |
name: Build Test | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js (.nvmrc) | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Load Next Cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ github.workspace }}/dist/cache | |
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }} | |
restore-keys: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}- | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Build | |
run: yarn build | |
env: | |
NODE_ENV: production |