From 43f0b9c4e7c33ae666bd303f35a636808ec3fea8 Mon Sep 17 00:00:00 2001 From: raphasampaio Date: Thu, 12 Dec 2024 17:42:33 -0300 Subject: [PATCH] Updated --- .github/workflows/CI.yml | 43 ++++++++++++++++++++++++++++++++++++++++ README.md | 5 ++++- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..f8a5798 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,43 @@ +name: CI +on: + push: + branches: + - master + tags: ['*'] + pull_request: + workflow_dispatch: +concurrency: + # Skip intermediate builds: always. + # Cancel intermediate builds: only if it is a pull request build. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: + - '1.9' + - '1.10' + - '1.11' + os: + - ubuntu-latest + - windows-latest + arch: + - x64 + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - uses: julia-actions/cache@v2 + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v5 + with: + files: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index ef12b0a..46a7332 100644 --- a/README.md +++ b/README.md @@ -1 +1,4 @@ -# PSRContinuousDeployment.jl \ No newline at end of file +# PSRContinuousDeployment.jl + +[![CI](https://github.com/psrenergy/PSRContinuousDeployment.jl/actions/workflows/CI.yml/badge.svg)](https://github.com/psrenergy/PSRContinuousDeployment.jl/actions/workflows/CI.yml) +[![codecov](https://codecov.io/gh/psrenergy/PSRContinuousDeployment.jl/graph/badge.svg?token=L4P1AI32UH)](https://codecov.io/gh/psrenergy/PSRContinuousDeployment.jl) \ No newline at end of file