Skip to content

feat: add route for shottr #749

feat: add route for shottr

feat: add route for shottr #749

name: continuous-integration
on:
pull_request_target:
push:
branches:
- develop
- feature/**
env:
CI: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
FONTAWESOME_TOKEN: ${{ secrets.FONTAWESOME_TOKEN }}
jobs:
prepare:
runs-on: ubuntu-20.04
name: Prepare
steps:
-
if: ${{ github.actor == 'dependabot[bot]' }}
name: Checkout code
uses: actions/checkout@v3.3.0
with:
ref: ${{ github.event.pull_request.head.sha }}
-
if: ${{ github.actor != 'dependabot[bot]' }}
name: Checkout code
uses: actions/checkout@v3.3.0
-
uses: actions/setup-node@v3.6.0
with:
node-version: 18
-
name: Cache node_modules
id: cache-node_modules
uses: actions/cache@v3.2.2
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node_modules-
${{ runner.os }}-
-
name: Install dependencies
if: steps.cache-node_modules.outputs.cache-hit != 'true'
run: |
yarn install --frozen-lockfile
-
name: Lint
run: |
yarn lint