diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a51bdd7c..c781d884 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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