-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (46 loc) · 1.5 KB
/
Copy pathci.yaml
File metadata and controls
57 lines (46 loc) · 1.5 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
# In order to push changes that effect ci.yaml, the GitHub CLI needs "workflow" scope,
# e.g. `gh auth login --scopes 'read:packages workflow'`
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Install zsh
run: |
sudo apt-get update && sudo apt-get install zsh
- name: chezmoi install
shell: bash
run: |
echo "Install"
./install.sh
echo "home directory"
ls -a $HOME
echo "Valdiate that .zshenv is created"
[[ -f "$HOME/.zshenv" ]] || exit 1
echo "config directory"
ls -a "$HOME/.config"
echo "Valdiate that git config and .zshrc are created"
[[ -f "$HOME/.config/git/config" ]] || exit 1
[[ -f "$HOME/.config/zsh/.zshrc" ]] || exit 1
echo "Valdiate user email from environment variable"
email=$(chezmoi data | jq -r '.user.email')
[[ "$email" == "test@taron.dev" ]] || exit 1
env:
GIT_AUTHOR_EMAIL: test@taron.dev
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: test environment
run: |
echo "test environment variables are set"
ls $ZDOTDIR
echo "test mise installed and tools are available"
mise ls
go version
shell: zsh --errexit {0}