
* dotenv refactoring * dotenv fixes * Env variables cleanup * Updates e2e variables * Moves environment file to types * Removes conflicting configs * Readds missing variables * Fixes * More fixes * Update .env.example * Update yarn.lock * Update turbo.json * Fixes e2e * Temp fix * disables cache for lint * Please work * I'm getting desperate here. * Matches node versions * Take 2 * Revert "Take 2" This reverts commit a735f47f2325c2040168e0cd99dea0fc357a791f. * Update .env.example
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
name: Lint
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
lint:
|
|
strategy:
|
|
matrix:
|
|
node: ["14.x"]
|
|
os: [ubuntu-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Use Node.js 14.x
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
# cache: "yarn"
|
|
# cache-dependency-path: yarn.lock
|
|
|
|
- name: Install deps
|
|
if: steps.yarn-cache.outputs.cache-hit != 'true'
|
|
run: yarn
|
|
|
|
- name: Lint
|
|
run: yarn lint:report
|
|
continue-on-error: true
|
|
|
|
- name: Merge lint reports
|
|
run: jq -s '[.[]]|flatten' lint-results/*.json &> lint-results/eslint_report.json
|
|
|
|
- name: Annotate Code Linting Results
|
|
uses: ataylorme/eslint-annotate-action@1.2.0
|
|
with:
|
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
report-json: "lint-results/eslint_report.json"
|
|
|
|
- name: Upload ESLint report
|
|
if: ${{ always() }}
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: lint-results
|
|
path: lint-results
|