CI #149
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'] | |
schedule: | |
- cron: '*/5 * * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 2 | |
- name: Git config user | |
uses: snow-actions/[email protected] | |
with: | |
name: Acaad.CI | |
email: [email protected] | |
- name: Authenticate with GitHub | |
run: echo "${{ secrets.SERVICE_ACCOUNT_TOKEN }}" | gh auth login --with-token | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- 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 | |
- name: Rush test:coverage | |
run: node common/scripts/install-run-rush.js test:coverage --verbose | |
- name: Upload test results to Codecov | |
if: ${{ !cancelled() }} | |
uses: codecov/test-results-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Upload coverage reports to Codecov | |
if: ${{ !cancelled() }} | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |