Added validation at borrow book #172
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
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | |
name: Lint | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
env: | |
node-version: 18.x | |
jobs: | |
run-linters: | |
name: Run linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- name: Use Node.js ${{ env.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.node-version }} | |
cache: "npm" | |
# ESLint and Prettier must be in `package.json` | |
- name: Install Node.js dependencies | |
run: npm ci | |
- name: Create dummy .env | |
run: cp .env.example .env | |
- name: Don't validate .env variables | |
run: printf '\nSKIP_ENV_VALIDATION="true"' >> .env | |
- name: .env file to use | |
run: cat .env | |
- name: Run Next Lint | |
run: npm run lint | |
# - name: Run linters | |
# uses: wearerequired/lint-action@v2 | |
# with: | |
# eslint: true | |
# prettier: true |