Skip to content

Commit

Permalink
ci: use node gh action (2/2) + cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexogamer committed Feb 23, 2024
1 parent ea98c05 commit 4891f63
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: lint
name: "Linting"
on:
pull_request:
push:
Expand All @@ -14,13 +14,15 @@ jobs:
- "readme.md"
runs-on: ubuntu-latest
steps:
- name: "checkout repo"
- name: "Checkout repo"
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: asdf_install
uses: asdf-vm/actions/install@v1
- name: "linting: ${{ matrix.files }}"
- name: "Install Node"
- uses: actions/setup-node@v4
with:
node-version: 'lts'
- name: "Lint ${{ matrix.files }}"
run: npx -y awesome-lint ${{ matrix.files }}
awesome-bot:
strategy:
Expand All @@ -30,16 +32,16 @@ jobs:
- "readme.md"
runs-on: ubuntu-latest
steps:
- name: "checkout repo"
- name: "Checkout repo"
uses: actions/checkout@v2.0.0
with:
fetch-depth: 0
- name: "setup ruby"
- name: "Install Ruby"
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.1
bundler-cache: true
- name: "install awesome-bot"
- name: "Install awesome-bot"
run: gem install awesome_bot
- name: "linting: ${{ matrix.files }}"
- name: "Lint ${{ matrix.files }}"
run: awesome_bot --allow-redirect ${{ matrix.files }} --white-list crates.io

0 comments on commit 4891f63

Please sign in to comment.