-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3168 from Opetushallitus/TOR-2210-sample-ci-lint
Alustava testi CI putki omadataoauth2sample sovellukselle
- Loading branch information
Showing
3 changed files
with
153 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.github/workflows/omadataoauth2sample.yml → .../workflows/omadataoauth2sample_deploy.yml
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: OmaDataOAuth2Sample | ||
name: Deploy OmaDataOAuth2Sample | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
|
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,36 @@ | ||
name: Test OmaDataOAuth2Sample | ||
on: | ||
push: | ||
jobs: | ||
test-client: | ||
name: Test client | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: 'omadata-oauth2-sample/.nvmrc' | ||
cache: 'npm' | ||
cache-dependency-path: 'omadata-oauth2-sample/client/package-lock.json' | ||
- run: cd omadata-oauth2-sample/client && npm ci | ||
- run: cd omadata-oauth2-sample/client && npm run lint | ||
- run: cd omadata-oauth2-sample/client && npm run build | ||
# TODO add test step when there are tests | ||
test-server: | ||
name: Test server | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: 'omadata-oauth2-sample/.nvmrc' | ||
cache: 'npm' | ||
cache-dependency-path: 'omadata-oauth2-sample/server/package-lock.json' | ||
- run: cd omadata-oauth2-sample/server && npm ci | ||
- run: cd omadata-oauth2-sample/server && npm run lint | ||
- run: cd omadata-oauth2-sample/server && npm run build | ||
# TODO add test step when there are tests |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.