Skip to content

Commit

Permalink
Change workflow's event to pull_request_target
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-ghelardi committed Jan 4, 2024
1 parent 029f31d commit 9f2930d
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/pulls.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Vessel Tests

on: push

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'

0 comments on commit 9f2930d

Please sign in to comment.