Skip to content

Commit

Permalink
feat: add environment setup to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RuiFilipeCampos committed Dec 29, 2023
1 parent bcc3e9b commit 6ec50c9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"extensions": [
"ms-python.python",
"GitHub.copilot",
"ms-azuretools.vscode-docker"
"ms-azuretools.vscode-docker",
"github.vscode-github-actions"
]
}
}
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,26 @@ permissions:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Build and load Docker image
uses: docker/build-push-action@v2
with:
context: ./.devcontainer
push: false
tags: devcontainer
load: true

test:
needs: build
container:
image: devcontainer
runs-on: ubuntu-latest

steps:
- name: Test
run: |
echo "success"
Expand Down

0 comments on commit 6ec50c9

Please sign in to comment.