Skip to content

Commit

Permalink
Merge pull request #25 from actionforge/issue23
Browse files Browse the repository at this point in the history
Fix actions with docker images and isolate env variables
  • Loading branch information
sebastianrath committed Mar 31, 2024
2 parents 00e8e9c + c7fc425 commit efa572e
Show file tree
Hide file tree
Showing 32 changed files with 1,519 additions and 495 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/build-and-publish.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on: [push]

jobs:
build-test-publish:
runs-on: ubuntu-latest
name: Build and Publish
permissions:
packages: write
contents: read
steps:
- name: Execute Action Graph
uses: actionforge/action@v0.8.30
with:
graph_file: build.yml
env:
FREEZE_TEST: true

- name: Run Integration test
uses: actionforge/action@6667acfef5cfb69d413683a8a87c1aa15412f649
with:
# Use graph-runner in workdir directory
runner_path: ${{ github.workspace }}/graph-runner
graph_file: test_input_output.yml

- name: Run Integration test
uses: actionforge/action@6667acfef5cfb69d413683a8a87c1aa15412f649
with:
# Use graph-runner in workdir directory
runner_path: ${{ github.workspace }}/graph-runner
graph_file: test_env.yml
env:
MY_ENV: "hello world"

- name: Build and Publish
uses: actionforge/action@v0.8.30
with:
graph_file: publish.yml
99 changes: 99 additions & 0 deletions .github/workflows/graphs/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
entry: gh-start
executions:
- src:
node: kiwi-gray-parrot
port: exec
dst:
node: gray-mango-cherry
port: exec
- src:
node: gray-mango-cherry
port: exec
dst:
node: run-v1-cherry-raspberry-pineapple
port: exec
- src:
node: gh-start
port: exec-on-push
dst:
node: kiwi-gray-parrot
port: exec
- src:
node: run-v1-cherry-raspberry-pineapple
port: exec-success
dst:
node: run-v1-blackberry-green-snake
port: exec
- src:
node: run-v1-blackberry-green-snake
port: exec-success
dst:
node: github-com-actions-upload-artifact-v3-1-3-purple-rabbit-brown
port: exec
connections: []
nodes:
- id: gh-start
type: gh-start@v1
position:
x: -490
y: 1210
settings:
folded: false
- id: kiwi-gray-parrot
type: github.com/actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
position:
x: 30
y: 2110
settings:
folded: false
- id: gray-mango-cherry
type: github.com/actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
position:
x: 450
y: 2080
inputs:
go-version: "1.22"
settings:
folded: false
- id: run-v1-cherry-raspberry-pineapple
type: run@v1
position:
x: 860
y: 2110
inputs:
script: >-
go mod tidy
go vet
go test ./... -v -race -coverpkg=./... -cover -coverprofile cover.out
--tags=unit_tests,integration_tests,system_tests,github_impl
go tool cover -html cover.out -o cover.html
settings:
folded: false
- id: github-com-actions-upload-artifact-v3-1-3-purple-rabbit-brown
type: >-
github.com/actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
position:
x: 1580
y: 2040
inputs:
name: cover
path: cover.html
settings:
folded: false
- id: run-v1-blackberry-green-snake
type: run@v1
position:
x: 1210
y: 2070
inputs:
script: go build --tags=github_impl .
settings:
folded: false
registries:
- github.com/docker/build-push-action@v5.1.0
- github.com/docker/login-action@v3.0.0
- github.com/docker/setup-buildx-action@v3.0.0
description: ""
Loading

0 comments on commit efa572e

Please sign in to comment.