Skip to content

style: lint source code #19

style: lint source code

style: lint source code #19

Workflow file for this run

name: CI
on:
push:
branches:
- main
- dev
workflow_dispatch:
inputs:
force-publish:
type: boolean
required: false
default: false
jobs:
unittests:
name: Run unittests
if: ${{ !github.event.inputs.force-publish }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- uses: pnpm/action-setup@v2
with:
version: ^8.14.2
run_install: true
- env:
TEST_CLIENT_ID: ${{ secrets.TEST_CLIENT_ID }}
TEST_CLIENT_SECRET: ${{ secrets.TEST_CLIENT_SECRET }}
TEST_REFRESH_TOKEN: ${{ secrets.TEST_REFRESH_TOKEN }}
TEST_EXTENSION_ID: ${{ secrets.TEST_EXTENSION_ID }}
run: pnpm test
publish:
name: Publish action
needs: unittests
if: ${{ github.ref == 'refs/heads/main' && !failure() && !cancelled() && (github.event_name == 'push' || github.event.inputs.force-publish) }}
runs-on: ubuntu-latest
steps:
- uses: wdzeng/action-of-action@v3