Adds meta tags for link previews in recipe page. (#1) #26
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: Run checks | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
jobs: | |
npm-install: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/[email protected] | |
- name: Use cache for npm π | |
id: cache-npm | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.npm | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-npm- | |
- name: Install npm packages π¦ | |
run: | | |
npm ci | |
svelte-check: | |
runs-on: ubuntu-latest | |
needs: [npm-install] | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/[email protected] | |
- name: Use cache for npm π | |
id: cache-npm | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.npm | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-npm- | |
- name: Install npm packages π¦ | |
run: | | |
npm ci | |
- name: Run svelte-check π¬ | |
run: | | |
npm run check | |
check-lint: | |
runs-on: ubuntu-latest | |
needs: [npm-install] | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/[email protected] | |
- name: Use cache for npm π | |
id: cache-npm | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.npm | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-npm- | |
- name: Install npm packages π¦ | |
run: | | |
npm ci | |
- name: Run linter π΅οΈ | |
run: | | |
npm run lint |