Add GitHub Repo Button #34
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 (JS) | |
on: | |
push: | |
paths: | |
- .github/workflows/ci_js.yml | |
- owmods_gui/frontend/** | |
branches: | |
- main | |
- renovate/js | |
pull_request: | |
paths: | |
- .github/workflows/ci_js.yml | |
- owmods_gui/frontend/** | |
branches: | |
- main | |
- dev | |
jobs: | |
js: | |
name: Check Frontend | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./owmods_gui/frontend | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.head_ref }} | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
run_install: false | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
name: Setup pnpm cache | |
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: Lint | |
run: pnpm lint-dry | |
- name: Check Formatting | |
run: pnpm prettier-check |