Skip to content

Commit

Permalink
feat: web ci (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley authored Mar 18, 2024
1 parent 0949b73 commit 96cbe04
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 1 deletion.
76 changes: 76 additions & 0 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Web

permissions: read-all

on:
push:
paths:
- frontend/sac-web/**
- .github/workflows/web.yml
pull_request:
types: opened
paths:
- frontend/sac-web/**
- .github/workflows/web.yml

jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
cache-dependency-path: frontend/sac-web/yarn.lock
- name: Install dependencies
run: |
cd frontend/sac-web
yarn install
- name: Format
run: |
cd frontend/sac-web
yarn format
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
cache-dependency-path: frontend/sac-web/yarn.lock
- name: Install dependencies
run: |
cd frontend/sac-web
yarn install
- name: Lint
run: |
cd frontend/sac-web
yarn lint
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
cache-dependency-path: frontend/sac-web/yarn.lock
- name: Install dependencies
run: |
cd frontend/sac-web
yarn install
- name: Test
run: |
cd frontend/sac-web
yarn test
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@
alt="Mobile CodeQL Workflow Status" />
</a>


<br />

<a href="https://github.com/GenerateNU/sac/actions/workflows/web.yml">
<img src="https://github.com/GenerateNU/sac/actions/workflows/web.yml/badge.svg"
alt="Web Workflow Status" />
</a>

<a href="https://github.com/GenerateNU/sac/actions/workflows/web_codeql.yml">
<img src="https://github.com/GenerateNU/sac/actions/workflows/web_codeql.yml/badge.svg"
Expand Down

0 comments on commit 96cbe04

Please sign in to comment.