-
Notifications
You must be signed in to change notification settings - Fork 8
fix: move ci/cd to github actions #700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jamesxu123
merged 36 commits into
dev
from
feature/hac-32-investigate-new-cicd-system-for
Jun 21, 2021
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
66b09e2
release: version 3.1.2 (#689)
logan-r 6095685
merge and resolve conflicts
logan-r 2829f54
merge and resolve conflicts
logan-r 4a7c200
Create node.js.yml
jamesxu123 7f5b91d
Update node.js.yml
jamesxu123 09b6a67
Update node.js.yml
jamesxu123 75d30c5
Update app.js
jamesxu123 abd6767
Update node.js.yml
jamesxu123 1a4fe34
Update node.js.yml
jamesxu123 fa56f41
Update node.js.yml
jamesxu123 7074079
Update node.js.yml
jamesxu123 7b6df35
Update node.js.yml
jamesxu123 5eff927
Update node.js.yml
jamesxu123 03402dd
Update node.js.yml
jamesxu123 aa52ae7
Update node.js.yml
jamesxu123 c8171e1
Update node.js.yml
jamesxu123 01a232e
Update node.js.yml
jamesxu123 dcabb85
Update node.js.yml
jamesxu123 f9d0ef8
Update node.js.yml
jamesxu123 f0a3a4d
Update node.js.yml
jamesxu123 a5c1dd0
Update package.json
jamesxu123 4cea357
Update account.test.js
jamesxu123 0df91eb
Update account.test.js
jamesxu123 e5bf79d
add elastic apm to see where tests are going wrong
jamesxu123 0ef97d7
move apm to app.js so it gets picked up by test
jamesxu123 63fb87e
add apm env to gh workflow
jamesxu123 5dde2ad
add missing envs
jamesxu123 6c59e30
Merge remote-tracking branch 'origin/feature/hac-32-investigate-new-c…
jamesxu123 37fbfbd
Merge remote-tracking branch 'origin/master' into feature/hac-32-inve…
jamesxu123 20126b7
remove debugging tools
jamesxu123 428c046
remove elastic apm
jamesxu123 f199173
run ci/cd on master as well
jamesxu123 3ba498c
Update .nvmrc
jamesxu123 b9fc935
Update package.json
jamesxu123 c9694e2
Delete .travis.yml
jamesxu123 ac539a2
Update package.json
jamesxu123 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,64 @@ | ||
| # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
| # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
|
||
| name: Node.js CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ dev, master ] | ||
| pull_request: | ||
| branches: [ dev, master ] | ||
|
|
||
| jobs: | ||
| build: | ||
| services: | ||
| mongodb: | ||
| image: mongo | ||
| ports: | ||
| - 27017:27017 | ||
| environment: testing | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| matrix: | ||
| node-version: [14.x] | ||
| # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Use Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| - run: npm ci | ||
| - run: npm test | ||
| env: | ||
| AUTH_PROVIDER_X509_CERT_URL: ${{ secrets.AUTH_PROVIDER_X509_CERT_URL }} | ||
| AUTH_URI: ${{ secrets.AUTH_URI }} | ||
| BUCKET_NAME: ${{ secrets.BUCKET_NAME }} | ||
| CLIENT_EMAIL: ${{ secrets.CLIENT_EMAIL }} | ||
| CLIENT_ID: ${{ secrets.CLIENT_ID }} | ||
| CLIENT_X509_CERT_URL: ${{ secrets.CLIENT_X509_CERT_URL }} | ||
| DB_ADDRESS_TEST: localhost:27017/hackerapi | ||
| # DB_ADDRESS_TEST: ${{ secrets.DB_ADDRESS_TEST }} | ||
| # DB_PASS_TEST: ${{ secrets.DB_PASS_TEST }} | ||
| # DB_USER_TEST: ${{ secrets.DB_USER_TEST }} | ||
| JWT_CONFIRM_ACC_SECRET: ${{ secrets.JWT_CONFIRM_ACC_SECRET }} | ||
| JWT_INVITE_SECRET: ${{ secrets.JWT_CONFIRM_ACC_SECRET }} | ||
| JWT_RESET_PWD_SECRET: ${{ secrets.JWT_RESET_PWD_SECRET }} | ||
| NO_REPLY_EMAIL: ${{ secrets.NO_REPLY_EMAIL }} | ||
| PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | ||
| PRIVATE_KEY_ID: ${{ secrets.PRIVATE_KEY_ID }} | ||
| PROJECT_ID: ${{ secrets.PROJECT_ID }} | ||
| SENDGRID_API_KEY: ${{ secrets.SENDGRID_API_KEY }} | ||
| TOKEN_URI: ${{ secrets.TOKEN_URI }} | ||
| TYPE: ${{ secrets.TYPE }} | ||
| PORT: 3000 | ||
| ADDRESS: localhost | ||
| COOKIE_SECRET: ${{ secrets.COOKIE_SECRET }} | ||
| # we don't currently have hosted elastic apm | ||
| # ELASTIC_APM_SERVICE_NAME: ${{ secrets.ELASTIC_APM_SERVICE_NAME }} | ||
| # ELASTIC_APM_SECRET_TOKEN: ${{ secrets.ELASTIC_APM_SECRET_TOKEN }} | ||
| # ELASTIC_APM_SERVER_URL: ${{ secrets.ELASTIC_APM_SERVER_URL }} | ||
| FRONTEND_ADDRESS_DEV: localhost:1337 | ||
| FRONTEND_ADDRESS_DEPLOY: app.mchacks.ca | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 +1 @@ | ||
| 10.17.0 | ||
| v14 |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.