Skip to content

Commit

Permalink
Merge pull request #3168 from Opetushallitus/TOR-2210-sample-ci-lint
Browse files Browse the repository at this point in the history
Alustava testi CI putki omadataoauth2sample sovellukselle
  • Loading branch information
a544jh authored Oct 17, 2024
2 parents da76f5f + 86b38e6 commit 7af34c8
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: OmaDataOAuth2Sample
name: Deploy OmaDataOAuth2Sample
on:
workflow_dispatch:
inputs:
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/omadataoauth2sample_test.yml
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
116 changes: 116 additions & 0 deletions omadata-oauth2-sample/client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7af34c8

Please sign in to comment.