Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mokdaddy authored Jul 2, 2024
1 parent 1c04f0e commit 781cb06
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI Workflow

on:
push:
branches:
- main
- master

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

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

- name: Install dependencies
run: npm install

- name: Run lint
run: npm run lint

build:
needs: lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

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

- name: Install dependencies
run: npm install

- name: Run build
run: npm run build

- name: Create zip archive of the code
run: zip -r code.zip .

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: code-archive
path: code.zip

0 comments on commit 781cb06

Please sign in to comment.