connected the contact form with emailjs/have set up the templates for… #35
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
name: lint-format-test-secure | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x, 22.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
- run: npm ci | |
- name: Install Snyk CLI | |
run: npm install -g snyk | |
- name: Authenticate Snyk | |
run: snyk auth ${{ secrets.SNYK_TOKEN }} | |
- name: Verify Snyk installation | |
run: snyk --version | |
- name: Run ESLint | |
run: npx eslint . --max-warnings=0 | |
- name: Run Prettier | |
run: npx prettier --check . | |
- name: Run build | |
run: npm run build --if-present | |
- name: Run tests | |
run: npm test | |
- name: Run Snyk test | |
run: snyk test | |
snyk: | |
runs-on: ubuntu-latest | |
needs: build | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x, 22.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js for Snyk | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
- run: npm ci | |
- name: Install Snyk CLI | |
run: npm install -g snyk | |
- name: Authenticate Snyk | |
run: snyk auth ${{ secrets.SNYK_TOKEN }} | |
- name: Run Snyk test | |
run: snyk test | |
- name: Run Snyk monitor | |
run: snyk monitor |