feat: Implement linter #10
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
name: Ci | |
on: | |
push: | |
branches: main | |
pull_request: | |
branches: main | |
jobs: | |
pr-checker: | |
name: 🔃 PR Checker | |
runs-on: ubuntu-latest | |
if: github.actor != 'dependabot[bot]' | |
steps: | |
- uses: thehanimo/[email protected] | |
with: | |
pass_on_octokit_error: false | |
configuration_path: .github/pr-checker.json | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
verify: | |
name: ☑️ Verify | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: ⬇️ Clone repository | |
uses: actions/checkout@v3 | |
- name: 🟢 Install Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: 🟢 Install Bun | |
uses: oven-sh/setup-bun@v2 | |
- name: 🟢 Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: 🟢 Install Pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: 🟢 Install Yarn | |
run: npm install -g yarn | |
- name: ⌛ Run Install | |
run: deno run --allow-read --allow-env --allow-run scripts/_runInstall.ts | |
- name: ✍ Run Linter | |
run: | | |
deno run --allow-read --allow-env --allow-run --allow-sys scripts/_runFormat.ts | |
deno run --allow-read --allow-env --allow-run --allow-sys scripts/_runCheck.ts | |
deno run --allow-read --allow-env --allow-run --allow-sys scripts/_runLint.ts | |
- name: 🧪 Run Test | |
run: deno run --allow-read --allow-env --allow-run scripts/_runTest.ts | |