Skip to content

Commit

Permalink
chore: switch to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sonirico committed Dec 15, 2024
1 parent 34df63c commit b8129d7
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 35 deletions.
26 changes: 0 additions & 26 deletions .circleci/config.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Use Node 20
uses: actions/setup-node@v3
with:
node-version: 20

- name: Cache node_modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Lint
run: npm run lint

- name: Test
run: npm test
18 changes: 9 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ node_modules/
.idea/
.vscode/
*.swp
./dist/
./lib/
./models/
./utils/
./parser/
./lexer/
./ast/
./exceptions/
./token/
dist/
lib/
models/
utils/
parser/
lexer/
ast/
exceptions/
token/

0 comments on commit b8129d7

Please sign in to comment.