Skip to content

Commit

Permalink
chore: fixups for action
Browse files Browse the repository at this point in the history
- fix: new download url base
- fix: latest tag fetch should come from main repo
- fix: directory root in download archives
- chore: update pnpm lock
- chore: rebuild dist

Signed-off-by: Sam Gammon <[email protected]>
  • Loading branch information
sgammon committed Jun 7, 2024
1 parent b140ff0 commit e4cb811
Show file tree
Hide file tree
Showing 12 changed files with 8,117 additions and 6,302 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: "Setup: PNPM"
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0
with:
version: 8.9.0
version: 9.1.4

- name: "Setup: Node"
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
Expand All @@ -39,11 +39,11 @@ jobs:

- name: "Setup: Install Dependencies"
id: install
run: pnpm install && pnpm install -g turbo
run: pnpm install --frozen-lockfile && pnpm install -g turbo

- name: "Build: Bundle"
id: build
run: turbo build --token ${{ secrets.BUILDLESS_APIKEY }} --no-daemon --remote-only
run: pnpm run build

- name: "Check: Compare Expected and Actual Directories"
id: diff
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: "Setup: PNPM"
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0
with:
version: 8.9.0
version: 9.1.4

- name: "Setup: Node"
id: setup-node
Expand All @@ -37,7 +37,7 @@ jobs:

- name: "Setup: Install Dependencies"
id: install
run: pnpm install && pnpm install -g turbo
run: pnpm install --frozen-lockfile && pnpm install -g turbo

- name: Check Format
id: npm-format-check
Expand All @@ -49,7 +49,7 @@ jobs:

- name: Test
id: npm-ci-test
run: turbo test --token ${{ secrets.BUILDLESS_APIKEY }} --no-daemon --remote-only
run: pnpm run test

- name: "Test: Sonar"
uses: SonarSource/sonarcloud-github-action@5ee47de3c96f0c1c51b09d2ff1fec0cfeefcf67c # master
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: "Setup: PNPM"
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0
with:
version: 8.9.0
version: 9.1.4

- name: "Setup: Node"
id: setup-node
Expand Down
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
registry=https://npm.pkg.st/
timeout=30000
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
[![CI](https://github.com/elide-dev/setup-elide/actions/workflows/ci.yml/badge.svg)](https://github.com/elide-dev/setup-elide/actions)
[![Coverage](./.github/badges/coverage.svg)](https://codecov.io/gh/elide-dev/setup-elide)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v1.4-ff69b4.svg)](.github/CODE_OF_CONDUCT.md)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Felide-dev%2Fsetup-elide.svg?type=shield&issueType=license)](https://app.fossa.com/projects/git%2Bgithub.com%2Felide-dev%2Fsetup-elide?ref=badge_shield&issueType=license)
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=elide-dev_setup-elide&metric=reliability_rating&token=96b4edd8d390591aa7b096d919983e1c1d42cba9)](https://sonarcloud.io/summary/new_code?id=elide-dev_setup-elide)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=elide-dev_setup-elide&metric=security_rating&token=96b4edd8d390591aa7b096d919983e1c1d42cba9)](https://sonarcloud.io/summary/new_code?id=elide-dev_setup-elide)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=elide-dev_setup-elide&metric=sqale_rating&token=96b4edd8d390591aa7b096d919983e1c1d42cba9)](https://sonarcloud.io/summary/new_code?id=elide-dev_setup-elide)


This repository provides a [GitHub Action][0] to setup the [Elide][1] runtime within your workflows.
Expand All @@ -18,21 +14,21 @@ This repository provides a [GitHub Action][0] to setup the [Elide][1] runtime wi
**Install the latest Elide version and add it to the `PATH`**
```yaml
- name: "Setup: Elide"
uses: elide-dev/setup-elide@v1
uses: elide-dev/setup-elide@v1.0.1
```
**Install a specific Elide version and add it to the `PATH`**
```yaml
- name: "Setup: Elide"
uses: elide-dev/setup-elide@v1
uses: elide-dev/setup-elide@v1.0.1
with:
version: 1.0.0-alpha7 # any tag from the `elide-dev/releases` repo
version: 1.0.0-alpha9 # any tag from the `elide-dev/releases` repo
```

**Install Elide but don't add it to the `PATH`**
```yaml
- name: "Setup: Elide"
uses: elide-dev/setup-elide@v1
uses: elide-dev/setup-elide@v1.0.1
with:
export_path: false
```
Expand Down
7 changes: 4 additions & 3 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,11 @@ describe('action', () => {
setupMocks()

const sourceUrl =
'https://dl.azr.elide.cloud/cli/v1/snapshot/darwin-aarch64/1.0.0-alpha7/elide.tgz'
'https://elide.zip/cli/v1/snapshot/darwin-aarch64/1.0.0-alpha9/elide.tgz'
await main.run({
force: true,
custom_url: sourceUrl
custom_url: sourceUrl,
version_tag: '1.0.0-alpha9'
})
expect(action).toHaveReturned()
expect(action).not.toThrow()
Expand Down Expand Up @@ -159,7 +160,7 @@ describe('action', () => {
setupMocks()
await main.run({
force: true,
version: '1.0.0-alpha7'
version: '1.0.0-alpha9'
})
expect(action).toHaveReturned()
expect(action).not.toThrow()
Expand Down
Loading

0 comments on commit e4cb811

Please sign in to comment.