Skip to content

Commit

Permalink
test: disable e2e tests by default (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath authored Dec 19, 2023
1 parent b41921f commit af5c94b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Checks

on:
schedule:
- cron: '0 0 * * SUN'
pull_request:
push:
branches:
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/semantic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,24 +132,6 @@ jobs:
name: generated-versions
path: pkg/semantic/fixtures/maven-versions-generated.txt

generate-e2e-fixtures:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-go@v3
with:
go-version-file: .go-version
cache: true
- uses: actions/setup-node@v3

- run: make regenerate-e2e-fixtures
- uses: actions/upload-artifact@v3
with:
name: e2e-fixtures
path: fixtures/locks-e2e/

test-semantic:
runs-on: ubuntu-latest
needs:
Expand All @@ -158,7 +140,6 @@ jobs:
- generate-pypi-versions
- generate-rubygems-versions
- generate-maven-versions
- generate-e2e-fixtures
if: always()
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1377,6 +1377,10 @@ func TestRun_Ignores(t *testing.T) {
func TestRun_EndToEnd(t *testing.T) {
t.Parallel()

if os.Getenv("TEST_ACCEPTANCE") != "true" {
t.Skip("Skipping acceptance tests")
}

e2eFixturesDir := "./fixtures/locks-e2e"

files, err := os.ReadDir(e2eFixturesDir)
Expand Down

0 comments on commit af5c94b

Please sign in to comment.