Skip to content

Commit

Permalink
Run lint and build in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
itayox committed Jul 20, 2023
1 parent 554957c commit a0a9fc9
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# This is a basic workflow to help you get started with Actions

name: CI Unit Tests
name: Build

# Controls when the workflow will run
on:
push:
branches: [ "**" ]

branches: ["**"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -22,14 +19,20 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: '18'
node-version: "18"

# Runs a single command using the runners shell
- name: Install deps
run: npm i

- name: Run unit tests

- name: Lint
run: npm run lint

- name: Unit test
run: npm run test

- name: Build
run: npm run build

0 comments on commit a0a9fc9

Please sign in to comment.