Skip to content

Static selector for adapters #166

Static selector for adapters

Static selector for adapters #166

Workflow file for this run

name: ci
on:
pull_request:
push:
branches:
- main
jobs:
gen:
name: Check generated code
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Setup requirements
uses: ./.github/actions/setup
- name: Re-generate code
run: pnpm gen
- name: Check for uncommitted changes
id: changes
uses: UnicornGlobal/has-changes-action@v1.0.11
- name: Fail if uncommitted changes
if: steps.changes.outputs.changed == 1
run: exit 1
lint:
name: Lint packages
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Setup requirements
uses: ./.github/actions/setup
- name: Lint packages
run: pnpm lint
- name: Check for uncommitted changes
id: changes
uses: UnicornGlobal/has-changes-action@v1.0.11
- name: Fail if uncommitted changes
if: steps.changes.outputs.changed == 1
run: exit 1
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Setup requirements
uses: ./.github/actions/setup
- name: Run tests
run: pnpm test
test-e2e:
name: Run e2e tests
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Setup requirements
uses: ./.github/actions/setup
- name: Run e2e tests
run: pnpm test:e2e
release:
name: Release packages
if: github.event_name == 'push'
runs-on: ubuntu-latest
needs: [gen, lint, test, test-e2e]
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Setup requirements
uses: ./.github/actions/setup
- name: Release packages
uses: changesets/action@v1
with:
publish: pnpm release
commit: 'chore(release): version packages'
title: 'chore(release): version packages'
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}