Skip to content

Commit

Permalink
Change the YAML deployment file and config files
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisseurin committed Jul 23, 2024
1 parent d961962 commit ab26ed5
Show file tree
Hide file tree
Showing 5 changed files with 389 additions and 39 deletions.
38 changes: 23 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI/CD
name: CI/CD Pipeline

on:
push:
Expand All @@ -8,27 +8,35 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]
node-version: [18.x]

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Run linter
run: npm run lint

- name: Install dependencies
run: npm install
- name: Run tests
run: npm test

#- name: Run the tests
# run: npm test
- name: Build project
run: npm run build

- name: Dev
run: npm run dev
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
Loading

0 comments on commit ab26ed5

Please sign in to comment.