Bump micromatch from 4.0.4 to 4.0.8 #127
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: facebook/metro/build-test-and-deploy | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
push: | |
tags: | |
# The job is triggered for any tag push. Tag format validation will be done | |
# as part of the deploy job for clearer error reporting for bad tag formatting | |
- '**' | |
# ref us unique per PR (refs/pull/<pr_number>/merge) | |
# and per pushed tag (refs/tags/<tag_name>) | |
# So this makes sure that previous CI for the same PR/tag | |
# are cancelled when a newer one is triggered | |
concurrency: | |
group: "build-test-and-deploy-${{ github.ref }}" | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
run-js-checks: | |
runs-on: ubuntu-latest | |
name: "Type check, lint, smoke test" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/yarn-install | |
- run: yarn typecheck | |
- run: yarn typecheck-ts | |
- run: yarn lint | |
- run: yarn test-smoke | |
test-with-coverage: | |
runs-on: ubuntu-latest | |
name: "Tests with coverage" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/yarn-install | |
- run: yarn test-coverage | |
- run: "./.github/scripts/install_codecov.sh" | |
- run: "./codecov -t ${{ secrets.CODECOV_TOKEN }} -f ./coverage/coverage-final.json" | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
runs-on: ['ubuntu-latest'] | |
node-version: ['18.0', '18.x', '20.x'] | |
include: | |
- runs-on: ubuntu-latest | |
node-version: '18.0' | |
# @typescript-eslint/eslint-plugin requires node ^18.18 | |
# but we allow yarn install to run regardless to test the package | |
ignore-engines: 'true' | |
uses: ./.github/workflows/test.yml | |
with: | |
node-version: ${{ matrix.node-version }} | |
runs-on: ${{ matrix.runs-on }} | |
ignore-engines: ${{ matrix.ignore-engines }} | |
deploy: | |
# runs only on tag pushes | |
if: ${{ github.ref_type == 'tag' }} | |
runs-on: ubuntu-latest | |
name: "Deploy" | |
needs: [run-js-checks, test] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/yarn-install | |
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc | |
- run: "./.github/scripts/publish.sh" | |
env: | |
RAW_TAG_NAME: ${{ github.ref_name }} | |
- run: rm ~/.npmrc |