diff --git a/.github/workflows/init-test.yml b/.github/workflows/init-test.yml new file mode 100644 index 0000000..95f58f9 --- /dev/null +++ b/.github/workflows/init-test.yml @@ -0,0 +1,23 @@ +name: "init script test" + on: + push: + branches: + - main + pull_request: + branches: + - main + + jobs: + build: + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - name: Show dotfiles + run: make list + - name: Install dotfiles + run: make install + - name: Self-documented Makefile + run: make help diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..cd8ca88 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,28 @@ +name: lint + on: + push: + branches: + - main + pull_request: + branches: + - main + + jobs: + shellcheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Check the setup scripts + uses: reviewdog/action-shellcheck@v1 + with: + github_token: ${{ secrets.github_token }} + reporter: github-check + path: "." + pattern: "*.sh" + - name: Check the scripts in '~/bin' + uses: reviewdog/action-shellcheck@v1 + with: + github_token: ${{ secrets.github_token }} + reporter: github-check + path: "./bin/" + pattern: "*"