Skip to content

๐Ÿ—๏ธ Run unit-tests before integration tests #24

๐Ÿ—๏ธ Run unit-tests before integration tests

๐Ÿ—๏ธ Run unit-tests before integration tests #24

Workflow file for this run

name: Release
on:
push:
branches: [ main ]
tags-ignore:
- '*'
jobs:
unit-test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- run: make test
integration-test:
runs-on: ubuntu-latest
needs: unit-test
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
- name: Create a Release
uses: elgohr/Github-Release-Action@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
title: ${{ github.sha }}
- name: Create a tagged Release
uses: elgohr/Github-Release-Action@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
title: ${{ github.sha }}
tag: ${{ github.run_id }}
release:
runs-on: ubuntu-latest
needs: integration-test
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.RELEASE_TOKEN }} # for pushing to protected branch
- name: Publish new version
run: |
git config --global user.email "[email protected]"
git config --global user.name "Release Bot"
git tag -fa v5 -m "Update v5 tag"
git push origin v5 --force