Skip to content

Commit

Permalink
replace travis pipeline with github pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorenzo-Battigelli committed Aug 6, 2024
1 parent 6585716 commit ba4e7b8
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 50 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Node.js CI

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 12

- name: Cache npm
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: |
cd aofl-js-packages
npm install
- name: Run lint
run: npm run lint

unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 12

- name: Cache npm
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: |
cd aofl-js-packages
npm install
- name: Run tests
run: npm test -- --debug
50 changes: 0 additions & 50 deletions .travis.yml

This file was deleted.

0 comments on commit ba4e7b8

Please # to comment.