54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
name: main
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
env:
|
|
TEST_BOT_TOKEN: ${{ secrets.TEST_BOT_TOKEN }}
|
|
TEST_CHANNEL_ID: ${{ secrets.TEST_CHANNEL_ID }}
|
|
TEST_GUILD_ID: ${{ secrets.TEST_GUILD_ID }}
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
run-commands:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
command:
|
|
# if these run in the same process, it dies,
|
|
# so we test them separate
|
|
- name: test reacord
|
|
run: pnpm -C packages/reacord test
|
|
# - name: test website
|
|
# run: pnpm -C packages/website test
|
|
- name: build
|
|
run: pnpm --recursive run build
|
|
- name: lint
|
|
run: pnpm run lint
|
|
- name: typecheck
|
|
run: pnpm run typecheck
|
|
name: ${{ matrix.command.name }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: setup pnpm
|
|
uses: pnpm/action-setup@v2
|
|
with:
|
|
version: 7.13.4
|
|
|
|
- name: setup node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
cache: pnpm
|
|
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: ${{ matrix.command.run }}
|