-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f92b81b
commit c11ee49
Showing
1 changed file
with
37 additions
and
14 deletions.
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,17 +1,40 @@ | ||
name: Super-Linter | ||
|
||
name: "JFrog Integration Example" | ||
on: push | ||
|
||
jobs: | ||
super-lint: | ||
name: Lint code base | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run Super-Linter | ||
uses: github/super-linter@v4 | ||
env: | ||
DEFAULT_BRANCH: main | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup JFrog CLI | ||
uses: jfrog/setup-jfrog-cli@v3 | ||
env: | ||
JF_URL: ${{ secrets.JF_URL }} | ||
JF_ACCESS_TOKEN: ${{ secrets.JF_ACCESS_TOKEN }} | ||
|
||
- name: Setup Node npm | ||
uses: actions/setup-node@v3 | ||
|
||
- name: Set CLI Config | ||
run: jf npm-config --global=true --repo-resolve=mr-npm --repo-deploy=mr-npm | ||
|
||
- name: Install Deps | ||
run: jf npm install | ||
|
||
- name: Run tests | ||
run: npm test | ||
|
||
- name: Publish | ||
run: jf npm publish | ||
|
||
- name: Publish Build info With JFrog CLI | ||
run: | | ||
# Collect environment variables for the build | ||
jf rt build-collect-env | ||
# Collect VCS details from git and add them to the build | ||
jf rt build-add-git | ||
# Publish build info | ||
jf rt build-publish |