Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Bump actions/checkout from 3.6.0 to 4.0.0 #58

Bump actions/checkout from 3.6.0 to 4.0.0

Bump actions/checkout from 3.6.0 to 4.0.0 #58

Workflow file for this run

name: test-zeitgeist-action
on:
pull_request:
push:
branches:
- 'main'
jobs:
test_zeitgeist_action:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
permissions: {}
name: Install zeitgeist and test presence in path
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Install zeitgeist
uses: ./
- name: Check install!
run: zeitgeist version
- name: Check root directory
run: |
if [[ $(git diff --stat) != '' ]]; then
echo 'should be clean'
exit 1
else
exit 0
fi
shell: bash
test_zeitgeist_with_go_install:
permissions: {}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
go_version: ['1.19', '1.20']
name: Try to install zeitgeist with go ${{ matrix.go_version }}
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: ${{ matrix.go_version }}
check-latest: true
- name: Install zeitgeist
uses: ./
with:
zeitgeist-release: 'main'
- name: Check install!
run: zeitgeist version
test_zeitgeist_action_custom_dir_root:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
permissions: {}
name: Install Custom zeitgeist and test presence in path with custom root dir
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Install zeitgeist
uses: ./
with:
install-dir: /usr/bin
use-sudo: true
- name: Check install!
run: zeitgeist version
- name: Check install dir!
run: |
[[ $(dirname "$(which zeitgeist)") == /usr/bin ]]
shell: bash
- name: Check root directory
run: |
[[ -z $(git diff --stat) ]]
shell: bash
test_zeitgeist_action_custom_dir:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
permissions: {}
name: Install Custom path zeitgeist and test presence in path
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Install zeitgeist
uses: ./
with:
install-dir: "$HOME/.zeitgeisttest"
- name: Check install!
run: zeitgeist version
- name: Check install dir!
run: |
[[ $(dirname "$(which zeitgeist)") == "$HOME/.zeitgeisttest" ]]
shell: bash
- name: Check root directory
run: |
[[ -z $(git diff --stat) ]]
shell: bash
test_zeitgeist_action_wrong:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
permissions: {}
name: Try to install a wrong zeitgeist
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Install zeitgeist
uses: ./
with:
zeitgeist-release: 'honk'
continue-on-error: true