Merge pull request #20 from ctrf-io/dependabot/npm_and_yarn/braces-3.0.3 #30
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] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: Set Environment Variables | |
run: | | |
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV | |
echo "OS_PLATFORM=$(uname -s)" >> $GITHUB_ENV | |
echo "OS_RELEASE=$(uname -r)" >> $GITHUB_ENV | |
echo "OS_VERSION=$(uname -v)" >> $GITHUB_ENV | |
echo "BUILD_NAME=$GITHUB_WORKFLOW" >> $GITHUB_ENV | |
echo "BUILD_NUMBER=$GITHUB_RUN_NUMBER" >> $GITHUB_ENV | |
- run: npm ci | |
- run: npm run build | |
- run: npm run test | |
- name: Publish Test Results summary | |
run: npx github-actions-ctrf summary ctrf/ctrf-report.json | |
- name: Publish CTRF Failed Test Summary Results | |
run: npx github-actions-ctrf failed ctrf/ctrf-report.json | |
- name: Publish CTRF Flaky Test Summary Results | |
run: npx github-actions-ctrf flaky ctrf/ctrf-report.json | |
- name: Publish CTRF Detailed Test Summary Results | |
run: npx github-actions-ctrf tests ctrf/ctrf-report.json | |
- name: Annotate failed tests | |
run: npx github-actions-ctrf annotate ctrf/ctrf-report.json | |
- run: npm run lint-check | |
- run: npm run format-check | |
# - name: Upload report as artifact | |
# uses: actions/upload-artifact@v2 | |
# with: | |
# name: ctrf-report | |
# path: ctrf/ctrf-report.json |