-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI Pre Release Draft Fix + CI Canary Cleanup (#843)
* cleanup + fix logic of build files * generate dev schema + SUBGRAPH_RELEASE_TAG: dev * only run on deploy to v1 endpoints * properly select subgraph-release * file rename + refactor * trigger ci.feature on any workflow edits given requirement of ci feature workflow for merge
- Loading branch information
1 parent
d9c12aa
commit 7b94c3f
Showing
5 changed files
with
61 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: CI | Pre-Release Draft Subgraph Integration Test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "release-subgraph-v1" | ||
paths: | ||
- "packages/sdk-core/**" | ||
- "packages/subgraph/**" | ||
- ".github/workflows/ci.pre-release-subgraph.yml" | ||
- ".github/workflows/call.setup-deploy-and-test-local-subgraph.yml" | ||
- ".github/workflows/call.test-subgraph-on-previous-sdk-core-versions.yml" | ||
|
||
jobs: | ||
show-contexts: | ||
name: Show Contexts | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Show contexts | ||
run: | | ||
echo github.event_name: ${{ github.event_name }} | ||
echo github.sha: ${{ github.sha }} | ||
echo github.repository: ${{ github.repository }} | ||
echo github.ref: ${{ github.ref }} | ||
echo github.head_ref: ${{ github.head_ref }} | ||
echo github.base_ref: ${{ github.base_ref }} | ||
# build and run sdk-core tests with local subgraph | ||
build-and-test-local-subgraph: | ||
uses: ./.github/workflows/call.setup-deploy-and-test-local-subgraph.yml | ||
name: Build and Test Subgraph (Release Branch) | ||
with: | ||
local-subgraph-url: http://localhost:8000/subgraphs/name/superfluid-test | ||
# we must use dev endpoint here because v1 endpoints won't be deployed yet | ||
# we want to test what is to be deployed | ||
subgraph-release: dev | ||
|
||
# build and test live subgraph with previous sdk-core releases | ||
build-and-test-live-subgraph-previous-releases: | ||
uses: ./.github/workflows/call.test-subgraph-on-previous-sdk-core-versions.yml | ||
name: Build and test current subgraph release with previous sdk-core versions | ||
if: github.base_ref == 'release-subgraph-v1' | ||
with: | ||
# we check with dev endpoint here because v1 endpoints won't be deployed yet | ||
# we want to check here if it's safe to merge what we have in dev | ||
# endpoints to v1 endpoints (backwards compatible) | ||
subgraph-release: dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters