add unit test & build & publish actions #18
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
on: ['pull_request'] | |
name: Test PR | |
jobs: | |
build: | |
name: Test PR | |
runs-on: ubuntu-latest | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
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: TEST 🔧 | |
run: | | |
pnpm install | |
pnpm run lint | |
pnpm run test | |
- name: Report Coverage for iris-web-rtc 🟢 | |
uses: ArtiomTr/jest-coverage-report-action@v2 | |
with: | |
custom-title: Coverage report for iris-web-rtc | |
package-manager: pnpm | |
working-directory: './packages/rtc' |