Skip to content

Commit

Permalink
Added ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Hkaar committed Oct 16, 2024
1 parent 5d4351c commit e939849
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: CI

on:
push:
branches:
- master
- dev

paths-ignore:
- "**.md"
- "LICENSE"

jobs:
lint:
name: Lint
runs-on: ubuntu-latest

steps:
- uses: "actions/checkout@v4"

- uses: denoland/setup-deno@v2
with:
deno-version: v2.x

- name: Cache npm modules
uses: actions/cache@v4
with:
path: |
~/.npm
!~/.npm/_logs
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: |
npm-
- name: Install dependecies
run: deno install

- name: Run Linter
run: deno lint app/ components/ lib/

test:
name: Tests
runs-on: ubuntu-latest
needs: [lint]

steps:
- uses: "actions/checkout@v4"

- uses: denoland/setup-deno@v2
with:
deno-version: v2.x

- name: Cache npm modules
uses: actions/cache@v4
with:
path: |
~/.npm
!~/.npm/_logs
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: |
npm-
- name: Install dependecies
run: deno install

- name: Run tests
run: deno test

0 comments on commit e939849

Please sign in to comment.