From cb3ca5ff61b6563d34be641bd59c6de3f09bd84e Mon Sep 17 00:00:00 2001 From: garrettladley Date: Mon, 18 Mar 2024 11:02:11 -0400 Subject: [PATCH 1/2] web ci added --- .github/workflows/web.yml | 76 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 .github/workflows/web.yml diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml new file mode 100644 index 000000000..1283b1ced --- /dev/null +++ b/.github/workflows/web.yml @@ -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 From 4e1088fb01222f3b63727772ff7f14609338ebb6 Mon Sep 17 00:00:00 2001 From: garrettladley Date: Mon, 18 Mar 2024 11:02:53 -0400 Subject: [PATCH 2/2] added badge to readme --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f836ea3b..f2d340670 100644 --- a/README.md +++ b/README.md @@ -45,8 +45,12 @@ alt="Mobile CodeQL Workflow Status" /> -
+ + + Web Workflow Status +