Skip to content

Commit

Permalink
Separate linting into own GHA jobs (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
Acconut authored Jan 17, 2025
1 parent 8226f70 commit 54f4a7c
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ on:
- opened
- synchronize
jobs:
content:
if: "!contains(github.event.pull_request.title, 'WIP: ')"
tests:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
Expand All @@ -23,7 +22,7 @@ jobs:
- desc: 'Node.js 20'
suite: 'node'
node: 20
name: ${{ matrix.desc }}
name: Tests (${{ matrix.desc }})
steps:
- name: Check out sources
uses: actions/checkout@v4
Expand Down Expand Up @@ -54,6 +53,33 @@ jobs:
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_KEY: ${{ secrets.BROWSERSTACK_KEY }}
lint:
name: Linter
runs-on: ubuntu-20.04
steps:
- name: Check out sources
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Git Clean
run: git clean -fxd --exclude=node_modules/
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node || 20 }}
- name: Install dependencies
uses: sergioramos/yarn-actions/install@v6
with:
frozen-lockfile: true
- name: Build
uses: sergioramos/yarn-actions/run@v6
with:
script: build
- name: Lint
uses: sergioramos/yarn-actions/run@v6
with:
script: lint

# @TODO: port this Travis CI automation to GHA one day:
# deploy:
# provider: npm
Expand Down

0 comments on commit 54f4a7c

Please sign in to comment.