mirror of
https://github.com/julia-actions/julia-buildpkg.git
synced 2026-02-12 09:26:54 +08:00
Add basic end-to-end test (#8)
(fixes https://github.com/julia-actions/julia-runtest/issues/25)
This commit is contained in:
76
.github/workflows/ci.yml
vendored
Normal file
76
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "main"
|
||||||
|
- "master"
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
version:
|
||||||
|
- "1.0"
|
||||||
|
- "1" # automatically expands to the latest stable 1.x release of Julia
|
||||||
|
- nightly
|
||||||
|
os:
|
||||||
|
- ubuntu-latest
|
||||||
|
- macOS-latest
|
||||||
|
- windows-latest
|
||||||
|
arch:
|
||||||
|
- x64
|
||||||
|
- x86
|
||||||
|
# 32-bit Julia binaries are not available on macOS
|
||||||
|
exclude:
|
||||||
|
- os: macOS-latest
|
||||||
|
arch: x86
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Example.jl
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: julia-actions/Example.jl
|
||||||
|
|
||||||
|
- name: Verify that test output file does not exist yet
|
||||||
|
run: test ! -f "$HOME/julia-buildpkg"
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Checkout julia-buildpkg
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: ./.github/actions/julia-buildpkg
|
||||||
|
|
||||||
|
- uses: julia-actions/setup-julia@v1
|
||||||
|
with:
|
||||||
|
version: ${{ matrix.version }}
|
||||||
|
arch: ${{ matrix.arch }}
|
||||||
|
|
||||||
|
- uses: actions/cache@v1
|
||||||
|
env:
|
||||||
|
cache-name: cache-artifacts
|
||||||
|
with:
|
||||||
|
path: ~/.julia/artifacts
|
||||||
|
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-test-${{ env.cache-name }}-
|
||||||
|
${{ runner.os }}-test-
|
||||||
|
${{ runner.os }}-
|
||||||
|
|
||||||
|
- uses: ./.github/actions/julia-buildpkg
|
||||||
|
|
||||||
|
- uses: julia-actions/julia-runtest@v1
|
||||||
|
|
||||||
|
- uses: julia-actions/julia-processcoverage@v1
|
||||||
|
|
||||||
|
- uses: codecov/codecov-action@v1
|
||||||
|
with:
|
||||||
|
file: lcov.info
|
||||||
|
|
||||||
|
- name: Verify that test output file exists
|
||||||
|
run: test -f "$HOME/julia-buildpkg"
|
||||||
|
shell: bash
|
||||||
Reference in New Issue
Block a user