ci: add release-please workflow (#6) #32
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: Continuous Integration | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
test-typescript: | |
name: TypeScript Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
id: checkout | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 | |
- name: Setup Node.js | |
id: setup-node | |
uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
- name: Install Dependencies | |
id: pnpm-install | |
run: pnpm install --frozen-lockfile | |
- name: Check Format | |
id: pnpm-format-check | |
run: pnpm run format:check | |
- name: Lint | |
id: pnpm-lint | |
run: pnpm run lint | |
- name: Test | |
id: pnpm-ci-test | |
run: pnpm run ci-test | |
test-action: | |
name: GitHub Actions Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
id: checkout | |
uses: actions/checkout@v4 | |
- name: Test Local Action | |
id: test-action | |
uses: ./ | |
with: | |
milliseconds: 2000 | |
- name: Print Output | |
id: output | |
run: echo "${{ steps.test-action.outputs.time }}" |