Skip to content

TECHOPS-2394 Migrate circleci to github actions #5

TECHOPS-2394 Migrate circleci to github actions

TECHOPS-2394 Migrate circleci to github actions #5

Workflow file for this run

name: Build and Deploy
on:
pull_request:
types: [opened, reopened, edited, synchronize]
workflow_dispatch:
inputs:
branch:
description: 'Branch to deploy'
required: true
default: 'dev'
environment:
description: environment to deploy
required: true
type: choice
options:
- dev
- prod
jobs:
test:
#needs: build
#Build job is to be executed only for pull_request events
if: ${{ github.event_name == 'pull_request' }}
uses: everwise/github-workflows/.github/workflows/test-conflisp.yml@TECHOPS-1811

Check failure on line 25 in .github/workflows/pr-validation.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr-validation.yml

Invalid workflow file

error parsing called workflow ".github/workflows/pr-validation.yml" -> "everwise/github-workflows/.github/workflows/test-conflisp.yml@TECHOPS-1811" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.
deploy:
#Deploy job is to be executed only for workflow_dispatch events and when a pull request is merged into the dev branch
#needs: build
if: ${{ github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && (github.ref_name == 'dev')) }}
uses: everwise/github-workflows/.github/workflows/deploy-conflisp.yml@TECHOPS-1811
with:
branch: ${{ github.ref_name }}
environment: ${{ github.ref_name == 'master' && 'prod' || 'dev' }}
secrets: inherit