Use esbuild --keep-names
and update to 2.1.0
#293
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: "build-test" | |
on: # rebuild any PRs and main branch changes | |
pull_request: | |
push: | |
branches: | |
- main | |
- "releases/*" | |
workflow_dispatch: | |
jobs: | |
build: # make sure build/ci work properly | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
npm install | |
export NODE_OPTIONS="--max_old_space_size=4096" | |
npm run all | |
test-simple-spec: # make sure the action works on a clean machine without building | |
if: startsWith(github.head_ref, 'auto-update') == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Create Autocomplete PR" | |
id: simple-spec | |
uses: ./ | |
with: | |
token: ${{ secrets.FIG_BOT_TOKEN }} | |
autocomplete-spec-name: __integration-tests__/simple-spec/cli | |
spec-path: src/__integration-tests__/simple-spec/new-cli.ts | |
integration: commander | |
repo-name: push-to-fig-autocomplete-action | |
repo-org: withfig | |
pr-body: "Integration test (simple-spec)" | |
diff-based-versioning: false | |
- name: Close Pull Request | |
uses: peter-evans/close-pull@v2 | |
with: | |
token: ${{ secrets.FIG_BOT_TOKEN }} | |
pull-request-number: ${{ steps.simple-spec.outputs.pr-number }} | |
comment: "Closing created PR" | |
delete-branch: true | |
test-diff-based-versioning: | |
if: startsWith(github.head_ref, 'auto-update') == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Create Autocomplete PR" | |
id: diff-based-versioning | |
uses: ./ | |
with: | |
token: ${{ secrets.FIG_BOT_TOKEN }} | |
autocomplete-spec-name: __integration-tests__/diff-based-versioning/cli | |
spec-path: src/__integration-tests__/diff-based-versioning/new-cli.ts | |
integration: commander | |
repo-name: push-to-fig-autocomplete-action | |
repo-org: withfig | |
pr-body: "Integration test (diff-based-versioning)" | |
diff-based-versioning: true | |
new-spec-version: 1.1.0 | |
- name: Close Pull Request | |
uses: peter-evans/close-pull@v2 | |
with: | |
token: ${{ secrets.FIG_BOT_TOKEN }} | |
pull-request-number: ${{ steps.diff-based-versioning.outputs.pr-number }} | |
comment: "Closing created PR" | |
delete-branch: true |