Change workflow's event to pull_request_target #205
Workflow file for this run
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: Vessel Tests | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
unit-test: | |
runs-on: ubuntu-latest | |
container: | |
image: circleci/clojure:openjdk-11-tools-deps-1.10.1.502 | |
options: -u 1001:115 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Cache Maven deps | |
uses: actions/cache@v1 | |
env: | |
cache-name: maven-deps | |
with: | |
path: /__w/vessel/vessel/?/.m2 | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('deps.edn') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Run unit tests | |
run: 'make unit-test' | |
integration-test: | |
runs-on: ubuntu-latest | |
container: | |
image: circleci/clojure:openjdk-11-tools-deps-1.10.1.502 | |
env: | |
VESSEL_TEST_REGISTRY: registry | |
options: -u 1001:115 | |
services: | |
registry: | |
image: registry:2 | |
ports: | |
- 5000:5000 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Cache Maven deps | |
uses: actions/cache@v1 | |
env: | |
cache-name: maven-deps | |
with: | |
path: /__w/vessel/vessel/?/.m2 | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('deps.edn') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Run integration tests | |
run: 'make integration-test' |