Skip to content

Commit

Permalink
feat(ci): Run tests in GitHub Actions
Browse files Browse the repository at this point in the history
feat(ci): Run tests in GitHub Actions
  • Loading branch information
khvn26 authored Jan 5, 2024
2 parents f400c20 + 9867c6b commit ffee9f6
Show file tree
Hide file tree
Showing 4 changed files with 4,602 additions and 4,190 deletions.
29 changes: 0 additions & 29 deletions .circleci/config.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Tests

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint_and_test:
runs-on: ubuntu-latest
name: Linting & Tests

steps:
- name: Cloning repo
uses: actions/checkout@v2

- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v2
with:
node-version-file: .nvmrc
cache: npm

- name: Install dependencies
if: steps.setup-node.outputs.cache-hit != 'true'
run: npm ci --ignore-scripts

- name: Run tests
run: npm run test
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v14
Loading

0 comments on commit ffee9f6

Please sign in to comment.