Add container-build-publish-action #6
Workflow file for this run
This file contains 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: Pull request | |
on: | |
pull_request: | |
paths: | |
- '*' | |
defaults: | |
run: | |
working-directory: "." | |
jobs: | |
preview: | |
name: Preview | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install Black | |
run: pip install black | |
- name: Run Black | |
uses: psf/black@stable | |
with: | |
src: "." | |
- name: Install flake8 | |
run: pip install flake8 | |
- uses: TrueBrain/actions-flake8@v2 | |
with: | |
path: "." | |
- name: Install Pulumi packages | |
run: | | |
python3 -m venv venv | |
venv/bin/pip install -r requirements.txt | |
- name: Run pulumi preview | |
uses: pulumi/actions@v3 | |
with: | |
command: preview | |
stack-name: org | |
comment-on-pr: true | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
work-dir: "." | |
env: | |
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} |