Skip to content

Merge pull request #367 from w3stling/node-18 #1271

Merge pull request #367 from w3stling/node-18

Merge pull request #367 from w3stling/node-18 #1271

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Test
run: |
yarn install
yarn lint
yarn test --passWithNoTests
- name: dry-run
id: version
run:
./node_modules/.bin/probot receive ./index.js
env:
SKIP_ENV_CHECK: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: test-output-received
if: github.event_name == 'push'
run: |
if [[ -z "${SEMVER}" ]]; then echo "failed - variable is empty"; exit 1; else echo "success - received ${SEMVER}"; fi
if [[ -z "${CURVER}" ]]; then echo "failed - variable is empty"; exit 1; else echo "success - received ${CURVER}"; fi
env:
SEMVER: ${{ steps.version.outputs.next-version }}
CURVER: ${{ steps.version.outputs.current-version }}