-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (44 loc) · 1.57 KB
/
capt.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: captain-ci
# run-name: ${{ github.actor }} is learning GitHub Actions
run-name: Captain Integrations
on: [push]
jobs:
capt-hooks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install zsh
run: sudo apt-get update; sudo apt-get install zsh
- name: Fetch origin main for comparison
run: git fetch origin main:refs/remotes/origin/main
- name: Set path in env
run: echo "PATH=$PATH:/home/runner/work/captain/captain" >> $GITHUB_ENV
# - name: Set capt verbose mode for debug diagnostics
# run: echo "CAPT_VERBOSE=1" >> $GITHUB_ENV
- name: Set capt main branch
run: echo "CAPT_MAIN_BRANCH=origin/main" >> $GITHUB_ENV
- name: Show env
run: env
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
with:
ruby-version: '3.1'
bundler-cache: true
- name: Install markdownlint
run: gem install mdl
- name: Captain hooks
run: |
# print "in zsh, name, version: $ZSH_NAME, $ZSH_VERSION"
# which zsh || echo "No which zsh"
# ls -la /usr/bin/zsh || echo "No zsh at /usr/bin"
# ls -la /bin/zsh || echo "No zsh at /bin/zsh"
# command -v zsh || echo "No command zsh"
# echo PATH: $PATH
# pwd
# ls
# tree
CAPT_MAIN_BRANCH=origin/main ./capt integration
# - name: Run a zsh script as proof
# # run: .github/bin/zsh_proof.sh
# run: tree
# shell: /usr/bin/zsh{0}