Skip to content

build(deps-dev): bump @babel/eslint-parser from 7.21.3 to 7.22.9 (#780) #950

build(deps-dev): bump @babel/eslint-parser from 7.21.3 to 7.22.9 (#780)

build(deps-dev): bump @babel/eslint-parser from 7.21.3 to 7.22.9 (#780) #950

Workflow file for this run

name: Pipeline
on:
push:
branches:
# semantic-release valid branches and all-contributors branches
- '+([0-9])?(.{+([0-9]),x}).x'
- 'main'
- 'next'
- 'next-major'
- 'beta'
- 'alpha'
- 'all-contributors/**'
pull_request:
types: [opened, synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
code_validation:
name: Code Validation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install dependencies
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: Check Types
run: npm run type-check
- name: Lint code
run: npm run lint
- name: Check format
run: npm run format:check
- name: Check autogenerated docs
run: npm run generate-all && git diff --exit-code
tests:
name: Tests (Node v${{ matrix.node }} - ESLint v${{ matrix.eslint }})
runs-on: ubuntu-latest
strategy:
matrix:
# The .x indicates "the most recent one"
node: [19.x, 18.x, 17.x, 16.x, 14.x, 14.17.0, 12.x, 12.22.0]
eslint: [7.5, 7, 8]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: Install ESLint v${{ matrix.eslint }}
run: npm install --no-save --force eslint@${{ matrix.eslint }}
- name: Run tests
run: npm run test:ci
release:
name: NPM Release
needs: [code_validation, tests]
runs-on: ubuntu-latest
if:
${{ github.repository == 'testing-library/eslint-plugin-testing-library' &&
contains('refs/heads/main,refs/heads/beta,refs/heads/next,refs/heads/alpha',
github.ref) && github.event_name == 'push' }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install dependencies
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: Build package
run: npm run build
- name: Release new version to NPM
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release