fix: handle this.prepare
and super.prepare
#56
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: CI | |
on: [push, pull_request] | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: corepack enable | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: yarn | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
parser/target/ | |
key: ${{ runner.os }}-cargo-v1-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ runner.os }}-cargo- | |
- run: yarn | |
- run: yarn prettier --check . | |
- run: cd parser && cargo clippy -- -D warnings | |
- run: cd parser && cargo fmt -- --check | |
- run: cd parser && cargo test | |
- run: yarn build:ci | |
- run: yarn lint --no-fix | |
- run: yarn test | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: [email protected] | |
- run: | | |
yarn generate:licenses:ci | |
git diff --exit-code |