From eafacf19206e79dda3ecb957db97f928f6b08407 Mon Sep 17 00:00:00 2001 From: Washington Botelho Date: Sun, 24 Apr 2022 03:35:43 -0300 Subject: [PATCH] up: moves ci to github actions --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ .travis.yml | 11 ----------- 2 files changed, 38 insertions(+), 11 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..2a23cf1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: CI +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Versions + run: | + node -v + google-chrome --version + chromedriver -v + + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "::set-output name=dir::$(yarn cache dir)" + + - uses: actions/cache@v2 + id: yarn-cache + + with: + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + + restore-keys: | + ${{ runner.os }}-yarn- + + - name: Yarn install + run: yarn --frozen-lockfile + + - name: Yarn test + uses: GabrielBB/xvfb-action@v1.2 + + with: + run: yarn test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 573310a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -install: - - npm i - -language: node_js -node_js: stable - -script: - - npm t - -services: - - xvfb