Skip to content

mihaialexandrescu is learning GitHub Actions #19

mihaialexandrescu is learning GitHub Actions

mihaialexandrescu is learning GitHub Actions #19

Workflow file for this run

name: flow-01
run-name: ${{ github.actor }} is learning GitHub Actions
on: [push, workflow_dispatch]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
job-01:
runs-on: ubuntu-latest # github.com/actions/runner-images
container:
image: ubuntu:latest
options: --cpus 1
timeout-minutes: 3
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'gomodule01/go.mod'
cache: false
cache-dependency-path: "**/go.sum"
- name: Expected failure
run: exit 5
continue-on-error: true
- name: Display /etc/lsb-release
run: cat /etc/lsb-release
- name: Run gomodule01
run: go run ./gomodule01/*.go