devx: speed up organize imports #277
Workflow file for this run
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: Test FernBot Dev | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "servers/fern-bot/**" | |
- ".github/workflows/deploy-fern-bot-dev.yml" | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }} | |
GITHUB_APP_LOGIN_NAME: ${{ secrets.FERN_BOT_DEV_GITHUB_APP_LOGIN_NAME }} | |
GITHUB_APP_LOGIN_ID: ${{ secrets.FERN_BOT_DEV_GITHUB_APP_LOGIN_ID }} | |
GITHUB_APP_ID: ${{ secrets.FERN_BOT_DEV_GITHUB_APP_ID }} | |
GITHUB_APP_PRIVATE_KEY: ${{ secrets.FERN_BOT_DEV_GITHUB_APP_PRIVATE_KEY }} | |
GITHUB_APP_CLIENT_ID: ${{ secrets.FERN_BOT_DEV_GITHUB_APP_CLIENT_ID }} | |
GITHUB_APP_CLIENT_SECRET: ${{ secrets.FERN_BOT_DEV_GITHUB_APP_CLIENT_SECRET }} | |
GITHUB_APP_WEBHOOK_SECRET: ${{ secrets.FERN_BOT_DEV_GITHUB_APP_WEBHOOK_SECRET }} | |
DEFAULT_VENUS_ORIGIN: "https://venus-dev2.buildwithfern.com" | |
DEFAULT_FDR_ORIGIN: "https://registry-dev2.buildwithfern.com" | |
FERNIE_SLACK_APP_TOKEN: ${{ secrets.FERNIE_SLACK_APP_TOKEN }} | |
CUSTOMER_ALERTS_SLACK_CHANNEL: "customer-upgrades-dev" | |
CUSTOMER_PULLS_SLACK_CHANNEL: "customer-pulls-dev" | |
CO_API_KEY: ${{ secrets.DEV_CO_API_KEY }} | |
jobs: | |
test_dev: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: 📥 Install | |
uses: ./.github/actions/install | |
- name: Codegen | |
run: | | |
npm install -g fern-api | |
- name: Compile and build | |
run: pnpm turbo compile codegen build | |
env: | |
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
WORKOS_API_KEY: ${{ secrets.WORKOS_API_KEY }} | |
WORKOS_CLIENT_ID: ${{ secrets.WORKOS_CLIENT_ID }} | |
- name: 🚀 serverless function run-thru | |
env: | |
CI: false | |
# For now we're just invoking all the functions to confirm they're functional | |
run: | | |
pnpm --filter "@fern-platform/fern-bot" invoke local --function updateRepoDataset --stage development | |
pnpm --filter "@fern-platform/fern-bot" invoke local --function updateOpenApiSpec --stage development | |
pnpm --filter "@fern-platform/fern-bot" invoke local --function updateOpenApiSpecs --stage development | |
- name: 🧪 Test | |
env: | |
CI: false | |
run: pnpm --filter "@fern-platform/fern-bot" test:ete |