Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
siibra-explorer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiao Gui
siibra-explorer
Commits
2619d2ad
Commit
2619d2ad
authored
5 years ago
by
Xiao Gui
Browse files
Options
Downloads
Patches
Plain Diff
bugfix: backend test
parent
685adc07
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/backend.yml
+18
-7
18 additions, 7 deletions
.github/workflows/backend.yml
with
18 additions
and
7 deletions
.github/workflows/backend.yml
+
18
−
7
View file @
2619d2ad
...
...
@@ -3,12 +3,10 @@ name: Backend tests
on
:
[
push
]
env
:
REFRESH_TOKEN
:
${{ secrets.REFRESH_TOKEN }}
HBP_CLIENTID
:
${{ secrets.HBP_CLIENTID }}
HBP_CLIENTSECRET
:
${{ secrets.HBP_CLIENTSECRET }}
NODE_ENV
:
test
jobs
:
build
:
install_dep
:
runs-on
:
ubuntu-latest
strategy
:
...
...
@@ -17,14 +15,27 @@ jobs:
steps
:
-
uses
:
actions/checkout@v1
-
name
:
Use Node.js ${{ matrix.node-version }}
uses
:
actions/setup-node@v1
with
:
node-version
:
${{ matrix.node-version }}
-
name
:
cd into deploy, npm install and npm test
-
name
:
cd into deploy, npm install
run
:
|
cd deploy
npm i
npm test
-
name
:
test no env
run
:
|
cd deploy
npm run testNoEnv
-
name
:
test with env
env
:
NODE_ENV
:
test
REFRESH_TOKEN
:
${{ secrets.REFRESH_TOKEN }}
HBP_CLIENTID
:
${{ secrets.HBP_CLIENTID }}
HBP_CLIENTSECRET
:
${{ secrets.HBP_CLIENTSECRET }}
run
:
|
cd deploy
npm run testEnv
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment