Skip to content

Commit

Permalink
Merge pull request #25 from e1himself/upgrade/goss-version
Browse files Browse the repository at this point in the history
Upgrade - goss version & latest as default
  • Loading branch information
e1himself authored Dec 22, 2023
2 parents 9aec67b + dd00907 commit 743191f
Show file tree
Hide file tree
Showing 12 changed files with 4,586 additions and 2,248 deletions.
1 change: 1 addition & 0 deletions .cache/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*
2 changes: 2 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
RUNNER_TOOL_CACHE=./.cache/
RUNNER_TEMP=./.cache/temp/
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: Setup Node.js v20
uses: actions/setup-node@v1
with:
node-version: 20

- run: |
npm install
npm run all
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16
v20
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ Read more about Goss at https://goss.rocks/.

### `version`

**Optional** The required version of Goss to install. Default `"v0.3.20"`.
**Optional** The required version of Goss to install. Default `"latest"`.

## Example usage

```yml
uses: e1himself/goss-installation-action
with:
version: 'v0.3.20'
version: 'v0.4.4'
```
4 changes: 2 additions & 2 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ test('test runs', () => {
RUNNER_TEMP: '/tmp',
RUNNER_TOOL_CACHE: '/tmp'
}
const ip = path.join(__dirname, '..', 'lib', 'main.js')
console.log(cp.execSync(`node ${ip}`, { env }).toString())
const script = path.join(__dirname, '..', 'lib', 'main.js')
console.log(cp.execSync(`node --env-file=.env ${script}`, { env }).toString())
})
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ inputs:
default: 'v0.3.20'
required: false
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'briefcase'
Expand Down
File renamed without changes.
Loading

0 comments on commit 743191f

Please sign in to comment.