Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnivafw committed Oct 18, 2024
1 parent c9e03c0 commit 8275add
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,15 @@ jobs:
uses: actions/checkout@v4

# Task 1.1:
- name: Installation
run: yarn install

- name: Run tests
run: yarn test

deploy-infrastructure:
needs:
- frontend-tests
name: Deploy infrastructure with Terraform
runs-on: ubuntu-latest
# Task 1.2:
Expand Down
4 changes: 3 additions & 1 deletion terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ resource "azurerm_resource_group" "devops" {

resource "azurerm_static_web_app" "devops" {
name = "${var.my_name}-webapp"
# Task 2.2:
resource_group_name = azurerm_resource_group.devops.name
location = local.location
# Task 2.2:
}

output "resource_group_name" {
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


0 comments on commit 8275add

Please sign in to comment.