Browse Source

CI YAML files.

pull/1/head
Fredrik Ekre 2 years ago
parent
commit
7730afe412
  1. 8
      .github/codecov.yml
  2. 7
      .github/dependabot.yml
  3. 41
      .github/workflows/TagBot.yml
  4. 44
      .github/workflows/Test.yml

8
.github/codecov.yml

@ -0,0 +1,8 @@
coverage:
status:
project:
default:
informational: true
patch:
default:
informational: true

7
.github/dependabot.yml

@ -0,0 +1,7 @@
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/" # Location of package manifests
schedule:
interval: "monthly"

41
.github/workflows/TagBot.yml

@ -0,0 +1,41 @@
name: TagBot
on:
issue_comment:
types:
- created
workflow_dispatch:
inputs:
lookback:
default: '3'
permissions:
actions: read
checks: read
contents: write
deployments: read
issues: read
discussions: read
packages: read
pages: read
pull-requests: read
repository-projects: read
security-events: read
statuses: read
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
with:
changelog: |
{% if custom %}
{{ custom }}
{% endif %}
See [`CHANGELOG.md`](https://github.com/fredrikekre/Prometheus.jl/blob/master/CHANGELOG.md) for notable changes.
{% if previous_release %}
[Diff since {{ previous_release }}]({{ compare_url }})
{% endif %}
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}

44
.github/workflows/Test.yml

@ -0,0 +1,44 @@
name: Test
on:
push:
branches:
- 'master'
- 'release-'
tags:
- '*'
pull_request:
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
version:
- '1.6'
- '1.7'
- '1.8'
- '1.9'
- '1'
- 'nightly'
os:
- ubuntu-latest
include:
- os: windows-latest
version: '1'
- os: macOS-latest
version: '1'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v4
with:
file: lcov.info
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Loading…
Cancel
Save