Skip to content

Commit

Permalink
Update superlinter.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mostafa-Hussaini authored Dec 13, 2023
1 parent f92b81b commit c11ee49
Showing 1 changed file with 37 additions and 14 deletions.
51 changes: 37 additions & 14 deletions .github/workflows/superlinter.yml
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

0 comments on commit c11ee49

Please sign in to comment.