chore(deps-dev): bump @babel/traverse from 7.22.8 to 7.23.2 #2804
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: Build | |
on: | |
push: | |
branches: | |
- main | |
- 'renovate/**' | |
- 'github-renovate/**' | |
pull_request: | |
jobs: | |
lint: | |
uses: vidavidorra/.github/.github/workflows/node-lint.yml@62580a2290da7a11a4332bbafc49ecb895d6873e # v3.0.0 | |
build: | |
name: Build (Node.js v${{ matrix.node }}) | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
strategy: | |
fail-fast: false | |
matrix: | |
node: [12, 14, 16] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
- name: Setup node | |
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install project | |
run: npm ci --ignore-scripts | |
- name: Build | |
run: npm run build | |
test: | |
name: Test (Node.js v${{ matrix.node }}) | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
strategy: | |
fail-fast: false | |
matrix: | |
node: [12, 14, 16] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
- name: Setup node | |
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install project | |
run: npm ci --ignore-scripts | |
- name: Test | |
run: npm run test:ci | |
code-coverage: | |
needs: [lint, build, test] | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
- name: Setup node | |
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 | |
with: | |
node-version: 14 | |
- name: Install project | |
run: npm ci --ignore-scripts | |
- name: Test | |
run: npm test | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage/cobertura-coverage.xml | |
release: | |
needs: [lint, build, test, code-coverage] | |
runs-on: ubuntu-latest | |
# GitHub API requests can easy take a couple of seconds and the release can | |
# make lots of API requests when a release has a lot of commits. If every | |
# requests takes five seconds, which is on the high side for a request, this | |
# could perform 180 requests. This should be enough for most use cases. | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
with: | |
# Make sure the release step uses its own credentials. | |
persist-credentials: false | |
- name: Setup node | |
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 | |
with: | |
node-version: 18 | |
- name: Install project | |
run: npm ci --ignore-scripts | |
- name: Build | |
run: npm run build | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} | |
GIT_AUTHOR_NAME: vidavidorra-release | |
GIT_AUTHOR_EMAIL: [email protected] | |
GIT_COMMITTER_NAME: vidavidorra-release | |
GIT_COMMITTER_EMAIL: [email protected] | |
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | |
run: npx --no-install semantic-release |