-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add github action workflows and upgrade wepback #22
Open
muuki88
wants to merge
10
commits into
master
Choose a base branch
from
github-actions
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
eef1fba
#8: Move Utils.ts to /utils directory
2e24023
#8, GD-2495, GD-2709: Added configurable viewability implementation
2ebcb0b
Add gutefrage readme section again
d9a349f
Added Jenkinsfile with minio upload
e0fd268
Fix typo in Jenkinsfile
3fb1dd0
Add node as tool to Jenkinsfile
ef60bf0
Configure viewability implementation to use gpt events
fc8df29
GD-2495: Added comment to Bid type
5bb68d3
Update Jest and add github workflows
muuki88 d923abf
Merge branch 'master' into github-actions
muuki88 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 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,2 +1,3 @@ | ||
NODE_ENV=development | ||
SELECTED_PLAYER=FLUID_PLAYER | ||
VIEWABILITY_IMPLEMENTATION=GPT_EVENT |
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,2 +1,3 @@ | ||
NODE_ENV=production | ||
SELECTED_PLAYER=FLUID_PLAYER | ||
VIEWABILITY_IMPLEMENTATION=GPT_EVENT |
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,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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,27 @@ | ||
name-template: 'Prebid-Outstream $RESOLVED_VERSION Release' | ||
tag-template: '$RESOLVED_VERSION' | ||
categories: | ||
- title: '🚀 New Features' | ||
label: 'feature' | ||
- title: '🛠 Maintenance' | ||
label: 'maintenance' | ||
- title: '🐛 Bug Fixes' | ||
labels: | ||
- 'fix' | ||
- 'bugfix' | ||
- 'bug' | ||
change-template: '- $TITLE (#$NUMBER)' | ||
version-resolver: | ||
major: | ||
labels: | ||
- 'major' | ||
minor: | ||
labels: | ||
- 'minor' | ||
patch: | ||
labels: | ||
- 'patch' | ||
default: minor | ||
template: | | ||
## In This Release | ||
$CHANGES |
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,25 @@ | ||
name: Release Drafter | ||
|
||
on: | ||
push: | ||
# branches to consider in the event; optional, defaults to all | ||
branches: | ||
- master | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
update_release_draft: | ||
permissions: | ||
contents: write # for release-drafter/release-drafter to create a github release | ||
pull-requests: write # for release-drafter/release-drafter to add label to PR | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Drafts your next Release notes as Pull Requests are merged into "master" | ||
- uses: release-drafter/release-drafter@v5 | ||
with: | ||
config-name: release-drafter.yml | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,28 @@ | ||
name: Validate PR | ||
|
||
on: | ||
push: | ||
branches: [ master, main ] | ||
pull_request: | ||
branches: [ master, main ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.x, 16.x, 18.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm ci | ||
- run: npm run build --if-present | ||
- run: npm lint | ||
- run: npm test | ||
- run: npm coverage |
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,74 @@ | ||
@Library('jenkins-shared-library') _ | ||
|
||
pipeline { | ||
agent any | ||
|
||
environment { | ||
// for integration tests | ||
CI = "Jenkins" | ||
// for slack | ||
SERVICE_NAME = "prebid-outstream" | ||
|
||
// upload paths | ||
MINIO_BUCKET = "assets.h5v.eu" | ||
MINIO_PATH = "prebid-outstream" | ||
} | ||
|
||
tools { | ||
nodejs 'nodejs-14.5.0' | ||
} | ||
|
||
options { | ||
disableConcurrentBuilds() | ||
} | ||
|
||
stages { | ||
stage('Install') { | ||
steps { | ||
sh 'npm install' | ||
} | ||
} | ||
|
||
stage('Build') { | ||
steps { | ||
sh 'npm run build' | ||
} | ||
} | ||
|
||
stage('Test') { | ||
steps { | ||
sh 'npm run test' | ||
} | ||
} | ||
|
||
stage('Upload to assets.h5v.eu') { | ||
steps { | ||
withAWS(endpointUrl: 'https://minio.gutefrage.net', credentials: 'minio') { | ||
echo 'starting upload to minio' | ||
s3Upload( | ||
workingDir: 'dist', | ||
includePathPattern: 'bundle.js*', | ||
bucket: "${MINIO_BUCKET}", | ||
path: "${MINIO_PATH}/${BUILD_NUMBER}", | ||
pathStyleAccessEnabled: true, | ||
cacheControl: 'public,max-age=31536000,immutable', | ||
contentType: 'text/javascript;charset=utf-8' | ||
) | ||
} | ||
} | ||
} | ||
|
||
} | ||
|
||
post { | ||
success { | ||
markBuildAsSuccessful() | ||
} | ||
unstable { | ||
markBuildAsUnstable() | ||
} | ||
failure { | ||
markBuildAsFailed() | ||
} | ||
} | ||
} |
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO Remove