Skip to content

Commit

Permalink
feat: add github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
TroyKomodo committed Dec 28, 2023
1 parent db75909 commit 011f53e
Show file tree
Hide file tree
Showing 11 changed files with 92 additions and 377 deletions.
332 changes: 0 additions & 332 deletions .circleci/config.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Lint

on:
pull_request:
branches:
- main
- feature/**
push:
branches:
- main
- feature/**
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

concurrency: { { github.head_ref || github.ref } }

jobs:
lint:
runs-on: ubuntu-latest
container: ghcr.io/scuffletv/build:0c6e1ff3a4f658977ac944d8b1352d455dfd1165
steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: pnpm install -r

- name: Lint
run: mask lint
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test

on:
pull_request:
branches:
- main
- feature/**
push:
branches:
- main
- feature/**
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

concurrency: { { github.head_ref || github.ref } }

jobs:
test:
runs-on: ubuntu-latest
container: ghcr.io/scuffletv/build:0c6e1ff3a4f658977ac944d8b1352d455dfd1165
steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: pnpm install -r

- name: Test
run: mask test --ci

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true
Loading

0 comments on commit 011f53e

Please sign in to comment.