Skip to content

Commit

Permalink
Create dockerimage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskawczynski committed Apr 1, 2020
1 parent c6180f2 commit 9a23863
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Docker Image CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: |
docker build . --file Dockerfile --tag my-image-name:$(date +%s)
- name: Run the tests
run: |
julia --project --color=yes --check-bounds=yes -e 'using Pkg; Pkg.test(coverage=true);'
- name: Submit code coverage
run: |
julia -e 'import Pkg;
cd(Pkg.dir("CalibrateEmulateSample"));
Pkg.add("Coverage");
using Coverage;
Codecov.submit(Codecov.process_folder())'

0 comments on commit 9a23863

Please sign in to comment.