Bump @actions/core from 1.11.1 to 3.0.0 #2
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
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| name: Test Pull Request | |
| permissions: | |
| contents: write | |
| jobs: | |
| rebuild-dependabot: | |
| if: github.actor == 'dependabot[bot]' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| - run: npm install | |
| - run: npm run package | |
| - name: Commit updated dist/index.js | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add dist/index.js | |
| git diff --staged --quiet || git commit -m "Rebuild dist/index.js" | |
| git push | |
| test-unit: | |
| needs: rebuild-dependabot | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: npm test | |
| package_check: | |
| needs: rebuild-dependabot | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: "Ensure that code has been packaged and committed" | |
| run: |- | |
| npm install | |
| npm run package | |
| git diff --exit-code dist/index.js || \ | |
| (echo -e "\nPlease run 'npm run package' and commit the results" && exit 1) | |
| test: | |
| needs: rebuild-dependabot | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-latest, macos-latest, windows-latest ] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install deck with token and team id | |
| uses: ./ | |
| with: | |
| token: ${{ secrets.DECKRUN_API_TOKEN }} | |
| team_id: ${{ secrets.DECKRUN_TEAM_ID }} | |
| - name: Verify installation | |
| run: deck version | |
| - name: Verify log-in | |
| run: deck auth check |