ci-unittest #98
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Perform Precommit Steps | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: [ "main" ] | |
repository_dispatch: | |
types: [ci-unittest] | |
jobs: | |
# Determine the branch name to append to docker image | |
determine-branch: | |
uses: thunderbirdgit/gh-actions-wf/.github/workflows/get-branch-name.yml@develop | |
# Get the short SHA to append to docker image | |
get-short-sha: | |
uses: thunderbirdgit/gh-actions-wf/.github/workflows/get-short-sha.yml@develop | |
build: | |
strategy: | |
matrix: | |
# Build multiple images for each change | |
service_name: ["hw-ui-service", "hw-ui-service2"] | |
needs: [get-short-sha, determine-branch] | |
# Use reusuable workflow and build multiple nodejs services | |
uses: thunderbirdgit/gh-actions-wf/.github/workflows/nodejs-build.yml@develop | |
with: | |
service_name: ${{matrix.service_name}} | |
short_sha: ${{ needs.get-short-sha.outputs.short_sha }} | |
branch_name: ${{ needs.determine-branch.outputs.branch_name }} |