Skip to content

Bump fourmolu/fourmolu-action from 10 to 11 (#61) #69

Bump fourmolu/fourmolu-action from 10 to 11 (#61)

Bump fourmolu/fourmolu-action from 10 to 11 (#61) #69

Workflow file for this run

name: Test actions pipeline
on:
pull_request:
branches: ['main']
push:
branches: ['main']
jobs:
test-action:
name: 'Test get-tested action'
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Extract the tested GHC versions
id: create-matrix
uses: ./
with:
cabal-file: get-tested.cabal
ubuntu-version: 'latest'
macos-version: 'latest'
- name: Output matrix
run: |
jq '.' <<< '${{ steps.create-matrix.outputs.matrix }}'
test-setup-action:
name: 'Test setup-get-tested action'
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Set up without options
id: setup
uses: ./setup-get-tested
- name: Set up with explicit directory
id: setup-with-directory
uses: ./setup-get-tested
with:
directory: "my-bin-dir"
- name: Output results
run: |
echo "${{ steps.setup.outputs.path }}"
if [[ -x "${{ steps.setup.outputs.path }}" ]]; then
echo "Is executable"
else
echo "Is NOT executable"
exit 1
fi
echo "${{ steps.setup-with-directory.outputs.path }}"
if [[ -x "${{ steps.setup-with-directory.outputs.path }}" ]]; then
echo "Is executable"
else
echo "Is NOT executable"
exit 1
fi