Skip to content

add unit test & build & publish actions #1

add unit test & build & publish actions

add unit test & build & publish actions #1

Workflow file for this run

on: ['pull_request']
name: Build and Test PR
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup 🛠️
uses: ./.github/actions/setup
- name: Build 🔧
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pnpm install
pnpm run lint
pnpm run test
pnpm run build
- name: Report Coverage for agora-rtc-react 🟢
if: always() # Also generate the report if tests are failing
uses: ArtiomTr/jest-coverage-report-action@v2
with:
custom-title: Coverage report for iris-web-rtc
package-manager: pnpm
working-directory: './packages/rtc'