chore(internal): upload builds and expand CI branch coverage #113
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-ignore: | |
- 'generated' | |
- 'codegen/**' | |
- 'integrated/**' | |
- 'preview-head/**' | |
- 'preview-base/**' | |
- 'preview/**' | |
jobs: | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- name: Bootstrap | |
run: ./scripts/bootstrap | |
- name: Check types | |
run: ./scripts/lint | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- name: Bootstrap | |
run: ./scripts/bootstrap | |
- name: Check build | |
run: ./scripts/build | |
- name: Get GitHub OIDC Token | |
if: github.repository == 'stainless-sdks/gitpod-typescript' | |
id: github-oidc | |
uses: actions/github-script@v6 | |
with: | |
script: core.setOutput('github_token', await core.getIDToken()); | |
- name: Upload tarball | |
if: github.repository == 'stainless-sdks/gitpod-typescript' | |
env: | |
URL: https://pkg.stainless.com/s | |
AUTH: ${{ steps.github-oidc.outputs.github_token }} | |
SHA: ${{ github.sha }} | |
run: ./scripts/utils/upload-artifact.sh | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- name: Bootstrap | |
run: ./scripts/bootstrap | |
- name: Run tests | |
run: ./scripts/test |