Skip to content

Commit

Permalink
Update ci.yml (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
zgosalvez authored Dec 30, 2022
1 parent af2eb32 commit b76a0d4
Showing 1 changed file with 29 additions and 12 deletions.
41 changes: 29 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,43 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone the repository
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
- name: Ensure SHA pinned actions
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@8877889a5717dad0b139f1d2925689aa68f88a43
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@af2eb3226618e2494e3d9084f515ad6dcf16e229

testing:
name: Run testing
build_test:
name: Build & Test
needs: security_hardening
runs-on: ubuntu-latest
steps:
- name: Clone the repository
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
- name: Set Node.js 16.x
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
with:
node-version: 16.x
- name: Install dependencies
ref: ${{ github.head_ref }} # https://github.com/stefanzweifel/git-auto-commit-action#checkout-the-correct-branch
- name: Get runs.using version
id: get-runs-using-version
uses: zgosalvez/github-actions-get-action-runs-using-version@a15b651c3198e1547715f3428b328e7ef89ab8d8
- name: Set up Node
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516
with:
node-version: v${{ steps.get-runs-using-version.outputs.version }}
- name: Cache Node Packages
id: node-cache
uses: actions/cache@4723a57e26efda3a62cbde1812113b730952852d
with:
path: ~/.npm
key: node-cache-${{ steps.get-runs-using-version.outputs.prop }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
node-cache-${{ steps.get-runs-using-version.outputs.prop }}-
node-cache-
- name: Get Node packages
run: npm ci
- name: Linter
- name: Run linter tool
run: npm run lint
- name: Tester
- name: Test
run: npm run test
- name: Preparer
- name: Prepare
run: npm run prepare
- uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a
with:
commit_message: Apply `npm run prepare` changes

0 comments on commit b76a0d4

Please sign in to comment.