Skip to content

Update github actions #252

Update github actions

Update github actions #252

Workflow file for this run

on:
pull_request:
branches:
- master
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
jobs:
lint:
name: Run actionlint and shellcheck
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
repo: pulumi/pulumictl
- name: lint providers
run: cd provider-ci && make lint-providers
- name: lint workflows
run: |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
./actionlint -color
shell: bash
test:
name: Verify against testdata
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
repo: pulumi/pulumictl
- name: Checkout Scripts Repo
uses: actions/checkout@v4
with:
path: ci-scripts
repository: pulumi/scripts
- name: Validate native-providers
run: cd native-provider-ci && make all
- name: Validate that our test workflows match checked in workflows
run: cd provider-ci && make test-workflow-generation
- name: Check worktree clean
run: ./ci-scripts/ci/check-worktree-is-clean