Skip to content

Commit

Permalink
Add examples to CI build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenbf committed Jun 3, 2024
1 parent 0e7c7d5 commit 61407fb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 33 deletions.
32 changes: 1 addition & 31 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
deps/concordium-base/concordium-contracts-common
- name: Build
run: yarn build:all
run: yarn build-ci

- name: Store build-debug
uses: actions/upload-artifact@v4
Expand All @@ -113,36 +113,6 @@ jobs:
packages/sdk/src
packages/ccd-js-gen/lib
typecheck-examples:
runs-on: ubuntu-22.04
needs: build
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn

- name: Restore dependencies
uses: actions/cache/restore@v3
with:
path: |
./node_modules
./docs/node_modules
./packages/*/node_modules
./examples/**/node_modules
key: ${{ runner.os }}-yarn

- name: Get build-debug
uses: actions/download-artifact@v4
with:
path: packages
name: build-debug

- name: Typecheck examples
run: yarn workspace @concordium/examples typecheck

tests:
runs-on: ubuntu-22.04
needs: build
Expand Down
2 changes: 1 addition & 1 deletion examples/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"prettier": "prettier . --ignore-path ../../.gitignore --ignore-path ../../.prettierignore --ignore-path .gitignore",
"fmt": "yarn prettier --write",
"fmt-check": "yarn prettier --check",
"typecheck": "tsc --noEmit",
"build": "tsc --noEmit",
"run-example": "ts-node"
}
}
3 changes: 2 additions & 1 deletion examples/reactnative/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"start": "react-native start",
"postinstall": "pod-install",
"clean": "react-native clean-project",
"test": "jest"
"test": "jest",
"build": "tsc --noEmit"
},
"dependencies": {
"@azure/core-asynciterator-polyfill": "^1.0.2",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"markdown:lint": "markdownlint docs/README.md docs/pages/**/*.md packages/*/README.md examples/*/README.md README.md",
"markdown:lint-fix": "yarn markdown:lint --fix",
"markdown:linkcheck": "markdown-link-check --config .markdown-linkcheck.json docs/README.md docs/pages/**/*.md packages/*/README.md examples/*/README.md README.md",
"build-ci": "FORCE_COLOR=true yarn workspaces foreach -vt run build",
"build:all": "FORCE_COLOR=true yarn workspaces foreach -vt --no-private run build",
"build-dev:all": "FORCE_COLOR=true yarn workspaces foreach -vt --no-private run build-dev",
"clean:all": "FORCE_COLOR=true yarn workspaces foreach -p --no-private run clean"
Expand Down

0 comments on commit 61407fb

Please sign in to comment.