This repository has been archived by the owner on Apr 13, 2024. It is now read-only.
Simple profile pages #44
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 | |
env: | |
NODE_VERSION: 18 | |
PNPM_VERSION: 8 | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install NodeJS | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install PNPM | |
uses: pnpm/action-setup@v2 | |
id: pnpm-install | |
with: | |
version: ${{ env.PNPM_VERSION }} | |
- name: Code Checkout | |
uses: actions/checkout@v2 | |
- name: Get PNPM store directory | |
id: pnpm-cache | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- name: Setup PNPM cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: pnpm install | |
- name: Code Linting | |
run: pnpm lint | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install NodeJS | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install PNPM | |
uses: pnpm/action-setup@v2 | |
id: pnpm-install | |
with: | |
version: ${{ env.PNPM_VERSION }} | |
- name: Code Checkout | |
uses: actions/checkout@v2 | |
- name: Get PNPM store directory | |
id: pnpm-cache | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- name: Setup PNPM cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build | |
run: pnpm build |