From 45ff8f3a533416ab4efb9c6228aaed5e6c7257db Mon Sep 17 00:00:00 2001 From: splitadricejas Date: Mon, 13 Sep 2021 11:17:08 -0300 Subject: [PATCH 1/2] CI workflow added and travis yml deleted --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ .travis.yml | 17 ----------------- 2 files changed, 34 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9ae01c4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: ci +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up nodejs + uses: actions/setup-node@v2 + with: + node-version: 'lts/*' + cache: 'npm' + + - name: npm CI + run: npm ci + + - name: npm Check + run: npm run check + + - name: npm Test + run: npm run test + + - name: npm Build + run: npm run build diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ab48905..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: node_js - -node_js: - - "lts/*" - -cache: npm - -git: - depth: false - -before_script: - - npm install - -script: - - npm run check - - npm run test - - npm run build From 7d80a9a005cbb2465d2f7de47757468eb8e5ac23 Mon Sep 17 00:00:00 2001 From: splitadricejas Date: Mon, 13 Sep 2021 13:54:18 -0300 Subject: [PATCH 2/2] build condition fixed --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ae01c4..03f0b9a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,10 +2,10 @@ name: ci on: push: branches: - - main + - '*' pull_request: branches: - - main + - '*' jobs: build: