Skip to content

Commit

Permalink
Mention GitHub Actions setting (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Sep 28, 2020
1 parent 7c73847 commit 7812c0d
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions README.md
Expand Up @@ -22,6 +22,46 @@ isolated environment. See more in the

## Examples

### `.github/workflow/*.yml`

Here is an example for using Run.jl with GitHub Actions. Create a
file, e.g., `.github/workflow/test.yml`, with:

```yaml
name: Run tests

on:
push:
branches:
- master
tags: '*'
pull_request:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
julia-version: ['1']
fail-fast: false
name: Test Julia ${{ matrix.julia-version }}
steps:
- uses: actions/checkout@v2
- name: Setup julia
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
- run: julia -e 'using Pkg; pkg"add Run@0.1"'
- run: julia -e 'using Run; Run.prepar()'
- run: julia -e 'using Run; Run.test()'
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: ./lcov.info
flags: unittests
name: codecov-umbrella
```

### `.travis.yml`

To use `Run.test` to run tests in Travis CI, add the following snippet
Expand Down

0 comments on commit 7812c0d

Please sign in to comment.