Skip to content

Commit

Permalink
chore(ci): switch to github actions from circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
Barrior committed Jan 10, 2024
1 parent 10b6a19 commit 986f13e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .circleci/config.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Testing

on: push

jobs:
testing:
runs-on: ubuntu-latest
steps:
- name: Copy project to machine
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node: 18

- name: Restore node_modules
id: restore-node-modules
uses: actions/cache/restore@v3
with:
path: node_modules
key: cache-${{ hashFiles('yarn.lock') }}

- name: Install dependencies
if: steps.restore-node-modules.outputs.cache-hit != 'true'
run: yarn install

- name: Cache node_modules
if: steps.restore-node-modules.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
with:
path: node_modules
key: ${{ steps.restore-node-modules.outputs.cache-primary-key }}

- name: Run lint
run: yarn lint

- name: Run testing
run: yarn test

0 comments on commit 986f13e

Please sign in to comment.