Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
firebird2552 committed Mar 22, 2024
1 parent 754a5b7 commit 9cf952d
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
name: CI
name: NodeJS with Webpack

on:
push:
branches:
- main # Adjust the branch name as needed
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
test:
name: Run Tests
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: npm install
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Run tests
run: npm test
- name: Build
run: |
npm install
npx webpack
deploy:
name: Deploy to GoDaddy
Expand Down

0 comments on commit 9cf952d

Please sign in to comment.