Merge pull request #367 from w3stling/node-18 #1271
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |