This message was deleted.
# general
s
This message was deleted.
k
Using the workflow file from the github actions docs
Copy code
name: Pulumi Preview
on:
  - pull_request
jobs:
  preview:
    name: Preview
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 1
      - uses: <docker://pulumi/actions>
        with:
          args: preview
        env:
          AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
          AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
          PULUMI_ROOT: infra
          PULUMI_CI: pr
b
you need to add an
npm install
step before your action step
k
@billowy-army-68599 Hmm, I don't get it. If you mean to run
npm install
right after checking out the repo
actions/checkout@v2
then I am installing the node packages on the
ubuntu-latest
container that is running the github actions.. If I understand correctly, is that we are running the
pulumi/actions
container on top of the
ubuntu-latest
and I need to basically have my Pulumi files in that container (pulumi/actions) as it contains all the packages that I require? Am I getting this wrong?
b
@kind-school-28825 are you using the default
ubuntu-latest
container? yes, you need to add an
npm install
after the checkout. is it a private runner?