Skip to content

Migrate to GitHub Actions #2

Migrate to GitHub Actions

Migrate to GitHub Actions #2

Workflow file for this run

name: Test Runner
on: [push]
permissions:
contents: write
jobs:
checkout:
runs-on: self-hosted
steps:
- name: Generate Token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: astemes
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'recursive'
token: ${{ steps.app-token.outputs.token }}
- name: Checkout Tools
uses: actions/checkout@v4
with:
repository: astemes/astemes-github-actions
ref: main
token: ${{ steps.app-token.outputs.token }}
path: ./.github/actions
test:
needs: checkout
runs-on: self-hosted
steps:
- uses: ./.github/actions/runLUnit
with:
project-path: "source\\Parameterized Test.lvproj"
build:
needs: test
runs-on: self-hosted
steps:
- name: Clear Mutation history
uses: ./.github/actions/clearMutationHistory
with:
directory: "source"
- uses: ./.github/actions/buildLVBuildSpec
with:
project-path: "source\\Parameterized Test.lvproj"
build-spec: "LUnit Parameterized Test Case"
release:
needs: build
runs-on: self-hosted
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Get version
id: get_version
uses: ./.github/actions/getVersion
- name: Build VIP
id: build-vip
uses: ./.github/actions/buildVIPackage
with:
vipb-path: "source\\LUnit Parameterized Add On.vipb"
lv-version: "20.0"
pkg-version: "${{ steps.get_version.outputs.version }}"
- name: Release VIP
uses: ./.github/actions/releaseFile
with:
file-path: "${{ steps.build-vip.outputs.vip-path }}"