Skip to content

Commit

Permalink
Update front.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AGPWR authored Jun 24, 2024
1 parent a408198 commit 0bfad29
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/front.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,39 @@ on:
push:
branches:
- main
# Triggers the workflow on pushes to the 'main' branch.
pull_request:
branches:
- main
# Triggers the workflow on pull requests to the 'main' branch.

jobs:
build:
build-and-test:
runs-on: ubuntu-latest
# Specifies the type of runner that the job will run on.
steps:
- uses: actions/checkout@v4
# Checks out the repository code so that the workflow can access it.
- name: Change directory to 'server'
run: cd server
- uses: actions/setup-node@v4
with:
node-version: 20
# Defines a matrix strategy to run the job with Node.js version 20.x.
cache: 'npm'
- run: npm ci
- run: npm start &
- run: npm test

security-scans:
runs-on: ubuntu-latest
# Specifies the type of runner that the job will run on.
steps:
- uses: actions/checkout@v4
# Checks out the repository code so that the workflow can access it.

- name: Scan dependencies for security vulnerabilities
# install and authenticate Snyk with the provided token, then run security tests.
run: |
npm install -g snyk
snyk auth ${{ secrets.SNYK_TOKEN }}
Expand Down

0 comments on commit 0bfad29

Please sign in to comment.