Skip to content

Replace contact button with link to GitHub profile #213

Replace contact button with link to GitHub profile

Replace contact button with link to GitHub profile #213

Workflow file for this run

# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Tests and Linting
on: [pull_request]
jobs:
# ==============================================================================
# JOB: TEST
# ==============================================================================
test:
name: Automated Tests and Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Use Node.js 18"
uses: "actions/setup-node@v3"
with:
node-version: "18"
- name: "Get yarn cache directory path"
id: "yarn-cache-dir-path"
run: 'echo "dir=$(yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"'
- name: "Restore yarn cache"
uses: "actions/cache@v3"
id: "yarn-cache"
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }}-
- run: "yarn install --immutable"
- uses: ./.github/actions/tests