Tests #2592
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: "0 12 * * *" | |
workflow_dispatch: {} | |
jobs: | |
tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# https://github.com/actions/virtual-environments | |
os: | |
- ubuntu-22.04 | |
- ubuntu-20.04 | |
- macos-12 | |
- macos-13 | |
- macos-14 | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v4 | |
- name: Test Install Chezmoi | |
run: ./install.sh | |
- name: Test bashrc | |
run: bash -c "source ~/.bashrc" | |
- name: Test zshrc | |
run: zsh -vc "source ~/.zshrc" | |
# - name: Test diff-so-fancy | |
# run: | | |
# #!/bin/zsh | |
# . $HOME/.shrc | |
# diff-so-fancy | |
notifications: | |
runs-on: ubuntu-latest | |
needs: tests | |
steps: | |
- name: Slack Notice Action | |
uses: sonots/[email protected] | |
with: | |
status: ${{ job.status }} | |
icon_emoji: ":octocat:" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required, but GitHub should automatically supply | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required | |
if: always() # Pick up events even if the job fails or is canceled. |