Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: update to eslint v9, flat config only #8

Merged
merged 21 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Continuous Integration
on:
pull_request:
push:
branches:
- main
jobs:
build-and-lint:
name: Build & Lint
runs-on: ubuntu-latest
if: github.repository_owner == 'icrawl'
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Use Node.js v20
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install Dependencies
run: yarn --immutable

- name: Build & Lint
run: yarn lint

validate-generated-index:
name: Validate Generated Index
runs-on: ubuntu-latest
if: github.repository_owner == 'icrawl'
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Use Node.js v20
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install Dependencies
run: yarn --immutable

- name: Generate new index
run: yarn gen-index

- name: Error if index is different
run: |
git status
if ! git diff-index --quiet HEAD --; then
echo "::error file=src/index.ts::File did not match generated file after script. Please review and adjust accordingly."
exit 1;
fi
Loading