Skip to content

ci

ci #6

Workflow file for this run

name: ci
on:
workflow_dispatch:
inputs:
fail:
description: 'should a job fail?'
required: true
type: boolean
default: false
workflow_call:
inputs:
fail:
description: 'should a job fail?'
required: true
type: boolean
default: false
jobs:
job_A:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: asdf
run: |
cat file1.txt
touch new-file.txt
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: my-artifact
path: new-file.txt
job_B:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: asdf
run: echo "HERE"
- name: maybe fail??
if: ${{ inputs.fail }}
run: exit -1
job_C:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Docker Setup Buildx
uses: docker/[email protected]
- uses: docker/[email protected]
with:
context: .
file: "Dockerfile.test"
tags: my-test-image:latest
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
push: false
- name: Run inside docker image
uses: addnab/docker-run-action@v3
with:
image: my-test-image:latest
options: -v ${{ github.workspace }}:/home/asdf -e HOME=/home/asdf
run: ls