mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-31 18:30:58 +00:00
feat: add node as shell type
This commit is contained in:
parent
ba102368d3
commit
e97623bbaf
3 changed files with 29 additions and 0 deletions
25
act/runner/testdata/shells/node/push.yml
vendored
Normal file
25
act/runner/testdata/shells/node/push.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
on: push
|
||||
env:
|
||||
MY_SHELL: node
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- shell: ${{ env.MY_SHELL }}
|
||||
run: |
|
||||
console.log(process.version)
|
||||
check-container:
|
||||
runs-on: ubuntu-latest
|
||||
container: node:16-buster-slim
|
||||
steps:
|
||||
- shell: ${{ env.MY_SHELL }}
|
||||
run: |
|
||||
console.log(process.version)
|
||||
check-job-default:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
shell: ${{ env.MY_SHELL }}
|
||||
steps:
|
||||
- run: |
|
||||
console.log(process.version)
|
Loading…
Add table
Add a link
Reference in a new issue