Skip to content

More infrastructure cleanup #377

More infrastructure cleanup

More infrastructure cleanup #377

Workflow file for this run

name: CI
on:
push:
branches: [master]
merge_group:
pull_request:
workflow_dispatch:
concurrency: ${{ github.workflow }}-${{ github.ref }}
env:
TURBO_API: http://127.0.0.1:9080
TURBO_TOKEN: this-is-not-a-secret
TURBO_TEAM: the-starbeam-folks
jobs:
install_dependencies:
name: "Setup"
runs-on: "ubuntu-latest"
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v2
- uses: NullVoxPopuli/action-setup-pnpm@v2
build:
name: "Build"
runs-on: "ubuntu-latest"
needs: ["install_dependencies"]
steps:
- uses: actions/checkout@v2
- uses: NullVoxPopuli/action-setup-pnpm@v2
- run: pnpm build
test:
name: "Tests"
runs-on: "ubuntu-latest"
needs: ["install_dependencies"]
steps:
- uses: actions/checkout@v2
- uses: NullVoxPopuli/action-setup-pnpm@v2
- run: pnpm ci:specs
test_prod:
name: "Tests (production)"
runs-on: "ubuntu-latest"
needs: ["install_dependencies"]
steps:
- uses: actions/checkout@v2
- uses: NullVoxPopuli/action-setup-pnpm@v2
- run: pnpm ci:prod
typecheck:
name: "Typecheck"
runs-on: "ubuntu-latest"
needs: ["install_dependencies"]
steps:
- uses: wyvox/action@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# --continue will keep running test:types
# even if dependencies of packages have failed
# (which means we'll have a lot of extra errors
# if something core doesn't pass type checking)
- run: ./node_modules/.bin/turbo run test:types --continue
lint:
name: "Lint"
runs-on: "ubuntu-latest"
needs: ["install_dependencies"]
steps:
- uses: wyvox/action@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: ./node_modules/.bin/turbo run test:lint --continue
# Release automation is not active at this time
# ------------------
# release:
# name: Release
# runs-on: ubuntu-latest
# needs: ["install_dependencies", "lint", "typecheck", "test", "build"]
# steps:
# - uses: actions/checkout@v2
# - uses: NullVoxPopuli/action-setup-pnpm@v2