ci: loool #5
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
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
Lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
env: | |
USOS_CONSUMER_KEY: '123' | |
USOS_CONSUMER_SECRET: '123' | |
ORIGIN: 'https://example.com' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: oven-sh/setup-bun@v1 | |
- name: install | |
run: bun install | |
- name: type check | |
run: bun check | |
- name: lint | |
if: (${{ success() }} || ${{ failure() }}) # ensures this step runs even if previous steps fail (avoids multiple runs uncovering different issues at different steps) | |
run: bun lint | |
- name: build and check generated types | |
if: (${{ success() }} || ${{ failure() }}) # ensures this step runs even if previous steps fail | |
run: bun run build |