chore(deps): bump ruby/setup-ruby from 1.206.0 to 1.207.0 (#225) #519
Workflow file for this run
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
# SPDX-FileCopyrightText: 2022 Weston Schmidt <[email protected]> | |
# SPDX-License-Identifier: Apache-2.0 | |
--- | |
name: 'Program in cmd dir CI Test' | |
on: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- '.github/workflows/tests.yml' | |
- '.github/workflows/ci.yml' | |
- '.reuse/*' | |
- 'command/**' | |
- 'command/cmd/foo/**' | |
- 'library/**' | |
- 'program/**' | |
- 'README.md' | |
tags: | |
- 'v1.*' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
command: | |
# Normally don't use a workflow without the @{ref}. In this case, we want | |
# to run the workflow specified by the branch instead of what is associated | |
# with a reference so we can test that the change works. | |
uses: ./.github/workflows/ci.yml | |
if: | | |
startsWith(github.ref, 'refs/tags/') == false | |
with: | |
license-skip: true | |
release-skip-publish: --skip-publish | |
working-directory: command | |
release-main-package: ./cmd/foo | |
release-type: program | |
release-docker: true | |
release-docker-file: ./cmd/foo/Dockerfile | |
upload-skip: true | |
secrets: inherit | |
command-tag: | |
uses: ./.github/workflows/ci.yml | |
if: | | |
startsWith(github.ref, 'refs/tags/') | |
with: | |
copyright-skip: true | |
build-skip: true | |
lint-skip: true | |
license-skip: true | |
style-skip: true | |
#tests-skip: true | |
release-skip-publish: --skip-publish | |
working-directory: command | |
release-main-package: ./cmd/foo | |
release-binary-name: foo | |
release-type: program | |
release-docker: true | |
release-docker-file: ./cmd/foo/Dockerfile | |
release-docker-latest: true | |
release-docker-major: true | |
release-docker-minor: true | |
upload-skip: true | |
secrets: inherit | |
program: | |
uses: ./.github/workflows/ci.yml | |
if: | | |
startsWith(github.ref, 'refs/tags/') == false | |
with: | |
license-skip: true | |
release-skip-publish: --skip-publish | |
working-directory: program | |
release-type: program | |
release-docker: true | |
release-docker-extras: | | |
main.go | |
upload-skip: true | |
secrets: inherit | |
program-tag: | |
uses: ./.github/workflows/ci.yml | |
if: | | |
startsWith(github.ref, 'refs/tags/') | |
with: | |
copyright-skip: true | |
build-skip: true | |
lint-skip: true | |
license-skip: true | |
style-skip: true | |
#tests-skip: true | |
release-skip-publish: --skip-publish | |
release-binary-name: programtest | |
working-directory: program | |
release-type: program | |
release-docker: true | |
release-docker-latest: true | |
release-docker-major: true | |
release-docker-minor: true | |
release-docker-extras: | | |
main.go | |
go.mod | |
upload-skip: true | |
secrets: inherit | |
library: | |
uses: ./.github/workflows/ci.yml | |
if: | | |
startsWith(github.ref, 'refs/tags/') == false | |
with: | |
license-skip: true | |
release-skip-publish: --skip-publish | |
working-directory: library | |
release-type: library | |
release-project-name: library | |
upload-skip: true | |
secrets: inherit | |
library-tag: | |
uses: ./.github/workflows/ci.yml | |
if: | | |
startsWith(github.ref, 'refs/tags/') | |
with: | |
copyright-skip: true | |
build-skip: true | |
lint-skip: true | |
license-skip: true | |
style-skip: true | |
#tests-skip: true | |
release-skip-publish: --skip-publish | |
working-directory: library | |
release-type: library | |
release-project-name: library | |
upload-skip: true | |
secrets: inherit | |
slow-things: | |
uses: ./.github/workflows/ci.yml | |
if: | | |
startsWith(github.ref, 'refs/tags/') == false | |
with: | |
working-directory: program | |
release-type: program | |
release-project-name: program | |
release-skip-publish: --skip-publish | |
upload-skip: true | |
yaml-lint-skip: false | |
secrets: inherit | |
slow-things-library: | |
uses: ./.github/workflows/ci.yml | |
if: | | |
startsWith(github.ref, 'refs/tags/') == false | |
with: | |
working-directory: library | |
release-type: library | |
release-project-name: library | |
release-skip-publish: --skip-publish | |
upload-skip: true | |
secrets: inherit | |
tag: | |
needs: | |
- command | |
- program | |
- library | |
- slow-things | |
- slow-things-library | |
runs-on: ubuntu-latest | |
if: | | |
always() && | |
startsWith(github.ref, 'refs/tags/') == false && | |
needs.command.result != 'failure' && | |
needs.program.result != 'failure' && | |
needs.library.result != 'failure' && | |
needs.slow-things.result != 'failure' && | |
needs.slow-things-library.result != 'failure' | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
token: ${{ secrets.PUSH_TAG_TOKEN }} | |
- name: Tag for testing the release | |
shell: bash | |
run: | | |
patch=`date +%s` | |
git tag "v1.0.${patch}" | |
git push --tags | |
done: | |
needs: [ command-tag, program-tag, library-tag ] | |
runs-on: ubuntu-latest | |
if: | | |
always() && | |
startsWith(github.ref, 'refs/tags/') == true && | |
needs.command-tag.result != 'failure' && | |
needs.program-tag.result != 'failure' && | |
needs.library-tag.result != 'failure' | |
steps: | |
- name: Test Complete | |
shell: bash | |
run: | | |
echo "Test Complete" |