-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github action for FieldPublication
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Publication | ||
on: | ||
push: | ||
paths: | ||
- "publication/**" | ||
- ".github/workflows/publication.yml" | ||
pull_request: | ||
paths: | ||
- "publication/**" | ||
- ".github/workflows/publication.yml" | ||
jobs: | ||
Tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: erlef/setup-beam@v1 | ||
with: | ||
otp-version: 26.0 | ||
elixir-version: 1.16.0 | ||
- name: Start CouchDB, Cantaloupe and OpenSearch | ||
run: docker-compose -f docker-compose.yml up -d | ||
working-directory: publication | ||
- name: Sleep to await CouchDB startup | ||
run: sleep 15s | ||
- name: Install Field Publcation dependencies and run setup | ||
run: mix setup | ||
working-directory: publication | ||
- name: Run Field Publication tests | ||
run: mix test | ||
working-directory: publication |