chore(release): 5.0.1 #311
Workflow file for this run
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: React Timing Hooks – Build & Test | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: ${{ matrix.os }}, Node ${{ matrix.node-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
node-version: [16.x, 18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup Node ${{ matrix.node-version }} on ${{ matrix.os }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: npm install | |
run: npm ci | |
- name: install locales for integration tests | |
run: | | |
npm install -g full-icu | |
echo "NODE_ICU_DATA=`node-full-icu-path 2>/dev/null`" >> $GITHUB_ENV | |
shell: bash | |
- name: Lint and unit tests | |
run: | | |
npm run prettier:check | |
npm run test:unit | |
- name: Coveralls.io Test Coverage | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
flag-name: run-${{ matrix.node-version }}-on-${{ matrix.os }} | |
parallel: true | |
- name: Integration tests | |
run: | | |
npm run build --if-present | |
npm run test:integration | |
env: | |
CI: true | |
finish: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls Finished | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.github_token }} | |
parallel-finished: true |