mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
Adding CI steps to tag releases following CHANGELOG entries to reduce unknowns and provide an easy way to communicate relevant changes.
43 lines
1 KiB
YAML
43 lines
1 KiB
YAML
name: tests
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout repo
|
|
uses: actions/checkout@v3
|
|
|
|
- name: install nix
|
|
uses: cachix/install-nix-action@v20
|
|
|
|
- name: configure cache
|
|
uses: DeterminateSystems/magic-nix-cache-action@v1
|
|
|
|
- name: check flake
|
|
run: nix -Lv flake check
|
|
|
|
- name: check nix parsing
|
|
run: nix -Lv develop -c evalnix
|
|
|
|
- name: get latest tag
|
|
id: latest
|
|
uses: actions-ecosystem/action-get-latest-tag@v1
|
|
|
|
- name: parse changelog
|
|
id: changelog
|
|
uses: coditory/changelog-parser@v1
|
|
|
|
- name: create release
|
|
id: release
|
|
uses: softprops/action-gh-release@v1
|
|
if: github.ref == 'refs/heads/main' && steps.changelog.outputs.version != steps.latest.outputs.tag
|
|
with:
|
|
files: ${{ steps.package.outputs.path }}
|
|
body: ${{ steps.changelog.outputs.description }}
|
|
tag_name: ${{ steps.changelog.outputs.version }}
|