Merge pull request #11 from tiktok/fix-housekeeping #10
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: CI | ||
on: | ||
push: | ||
branches: ['main'] | ||
pull_request: | ||
branches: ['main'] | ||
permissions: | ||
contents: read # to fetch code (actions/checkout) | ||
jobs: | ||
build: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.platform }}-${{ matrix.node }} | ||
cancel-in-progress: true | ||
strategy: | ||
fail-test: false | ||
matrix: | ||
node: | ||
- '16' | ||
platform: | ||
- ubuntu-latest | ||
name: '${{ matrix.platform }} / Node.js ${{ matrix.node }}' | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- name: Configure Git | ||
run: | | ||
git config --local user.name tiktokbot | ||
git config --local user.email [email protected] | ||
- name: Checkout Commit | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: Verify Change Logs | ||
run: node common/scripts/install-run-rush.js change --verify | ||
- name: Rush Install | ||
run: node common/scripts/install-run-rush.js install | ||
- name: Rush rebuild | ||
run: node common/scripts/install-run-rush.js rebuild --verbose --production | ||
- name: Rush test | ||
run: node common/scripts/install-run-rush.js test --verbose |