Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #43

Closed
wants to merge 1 commit into from
Closed

Test #43

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 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 Expand Up @@ -54,6 +61,8 @@ jobs:
run: terraform plan

# Task 2.3:
- name: Terraform Apply
run: terraform apply -auto-approve

- name: Get Terraform output
id: terraform-output
Expand Down
2 changes: 1 addition & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<h1>Hei, verden!</h1>
<h1>Hei, verden! Hjerte </h1>
</body>
</html>
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


Loading