Skip to content
Open
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
2 changes: 2 additions & 0 deletions .dagger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ func (p *PipelineDagger) Build(
return p.Frontend.Build()
}

// Only run the tests
func (p *PipelineDagger) RunTests(
ctx context.Context,
) (string, error) {
return p.Frontend.UnitTest(ctx)
}

// Run the tests with debug no push comment to github
func (p *PipelineDagger) RunTestsWithDebug(
ctx context.Context,
// The model to use to debug debug tests
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/1_wf_build.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Run test locally with act
# act --secret-file my.secrets --var-file my.variables -W ".github/workflows/1_wf_build.yaml" -p=false
# -p=false to avoid unnecessary image pulls
# link act on wsl windows unbuntu: (user root) cd ~/.config/act/
name: wf_fe_build

on:
Expand Down
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# make check WORKFLOW_FILE="aaa.yaml"

SECRET_FILE := my.secrets
VARIABLES_FILE := my.variables
WORKFLOW_FILE := 1_wf_build.yaml

check:
act --secret-file $(SECRET_FILE) --var-file $(VARIABLES_FILE) -W ".github/workflows/$(WORKFLOW_FILE)" -p=false

.PHONY: check
1 change: 1 addition & 0 deletions my.secrets
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DOCKER_PASSWORD="quangduytran0905161395"
3 changes: 3 additions & 0 deletions my.variables
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DOCKER_URL="docker.io"
DOCKER_USERNAME="onlylight291998"
ENVVAR_WEBSITE="PORT=3100 REACT_APP_API_URL=http://localhost:3000"