test: add test for remotely created dotfiles as well #41
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: Test Dotfiles | |
on: | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- synchronize | |
jobs: | |
test-dotfiles--local: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup test environment and run tests | |
run: ./test/setup.sh --local | |
test-dotfiles--remote: | |
runs-on: ubuntu-latest | |
env: | |
CURRENT_BRANCH: ${{ github.head_ref || github.ref_name }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup test environment remotely and run tests | |
run: ./test/setup.sh --remote $CURRENT_BRANCH | |