mount-helper: fix getting btrfs devices #681
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: dorothy | |
'on': | |
- push | |
- pull_request | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
env: | |
DOROTHY: ${{ github.workspace }} | |
NO_TTY: yes | |
VERBOSE: yes | |
CI_COMMIT_MESSAGE: 'ci: adjustments' | |
CI_COMMIT_NAME: 'Continuous Integration' | |
CI_COMMIT_EMAIL: '[email protected]' | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@v2 | |
- name: 'Cache XDG' | |
id: cache-xdg | |
uses: actions/cache@v3 | |
with: | |
path: ~/.local | |
key: ${{ runner.os }} | |
- name: 'Dorothy Development' | |
shell: bash | |
run: | | |
chmod +x "$DOROTHY/commands/"* | |
source "$DOROTHY/sources/login.sh" | |
dorothy dev | |
- name: 'Trunk Format' | |
if: github.event_name == 'push' | |
shell: bash | |
run: | | |
source "$DOROTHY/sources/login.sh" | |
dorothy format || : | |
if git diff --quiet &>/dev/null; then | |
echo 'Already formatted.' | |
else | |
git config --global user.name "${{ env.CI_COMMIT_NAME }}" | |
git config --global user.email "${{ env.CI_COMMIT_EMAIL }}" | |
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}" | |
git push | |
fi | |
- name: 'Trunk Check' | |
uses: trunk-io/trunk-action@v1 | |
- name: 'Dorothy Test' | |
shell: 'script -q -e -c "bash {0}"' | |
run: | | |
source "$DOROTHY/sources/login.sh" | |
dorothy test |