Bump asdf-vm/actions from 1 to 4 #94
Workflow file for this run
This file contains hidden or 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: Main workflow | |
| on: | |
| push: | |
| paths-ignore: | |
| - "**.md" | |
| - ".all-contributorsrc" | |
| pull_request: | |
| paths-ignore: | |
| - "**.md" | |
| - ".all-contributorsrc" | |
| schedule: | |
| - cron: "0 0 * * 5" | |
| jobs: | |
| plugin_test: | |
| strategy: | |
| matrix: | |
| os: [macos-latest, ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: asdf_plugin_test | |
| env: | |
| GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| uses: asdf-vm/actions/plugin-test@v4 | |
| with: | |
| command: neko -version | |
| test: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install asdf | |
| run: git clone https://github.com/asdf-vm/asdf.git $HOME/asdf | |
| - name: Test plugin | |
| run: | | |
| . $HOME/asdf/asdf.sh | |
| asdf plugin-add neko $GITHUB_WORKSPACE | |
| bats test | |
| env: | |
| GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Run ShellCheck | |
| run: shellcheck bin/* | |
| format: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install shfmt | |
| run: brew install shfmt | |
| - name: Run shfmt | |
| run: shfmt -d -i 2 -ci . |