install+docs: add script to README (#263) #3
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: Check automated install script | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- "install.sh" | |
pull_request: | |
paths: | |
- "install.sh" | |
# NOTE: always set shell: bash, otherwise on Windows there might be problems! | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y shellcheck | |
- name: Check script | |
run: shellcheck install.sh | |
test: | |
name: ${{ matrix.os }} | |
needs: [ lint ] | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test script | |
shell: bash | |
run: | | |
bash install.sh --to /tmp | |
/tmp/dra --version |