Skip to content

Bump Node version to 20 #39

Bump Node version to 20

Bump Node version to 20 #39

Workflow file for this run

name: "test"
on:
pull_request:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
npm install
npm run all
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set testval
id: testval
uses: ./
with:
cond: true
if_true: "true value"
if_false: "false value"
- name: check testval
run: test "${{ steps.testval.outputs.value }}" = "true value"
- name: set falseval
id: falseval
uses: ./
with:
cond: false
if_true: "true value"
if_false: "false value"
- name: check falseval
run: test "${{ steps.falseval.outputs.value }}" = "false value"
- name: Test with GitHub Actions expression
id: event
uses: ./
with:
cond: ${{ github.event_name == 'pull_request' }}
if_true: "value for pull request event"
if_false: "value for non pull request event"
- name: check event
run: echo "${{ steps.event.outputs.value }}"
- name: check event (PR)
if: github.event_name == 'pull_request'
run: test "${{ steps.event.outputs.value }}" = "value for pull request event"
- name: check event (non-PR)
if: github.event_name != 'pull_request'
run: test "${{ steps.event.outputs.value }}" = "value for non pull request event"