From 889b4c6075a9fa9453c17d9838e230d0417205ca Mon Sep 17 00:00:00 2001 From: Katie Gengler Date: Tue, 21 Mar 2023 16:58:16 -0400 Subject: [PATCH] Add github actions for CI --- .github/workflows/ci.yml | 48 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 25 --------------------- 2 files changed, 48 insertions(+), 25 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..1e19d83 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,48 @@ +name: CI + +on: + push: + branches: + - main + - master + pull_request: {} + +concurrency: + group: ci-${{ github.head_ref || github.ref }} + cancel-in-progress: true + +jobs: + test: + name: "Tests" + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v3 + - name: Install Node + uses: actions/setup-node@v3 + with: + node-version: 14.x + cache: yarn + - name: Install Dependencies + run: yarn install --frozen-lockfile + - name: Lint + run: yarn lint + - name: Run Tests + run: yarn test + + floating: + name: "Floating Dependencies" + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 14.x + cache: yarn + - name: Install Dependencies + run: yarn install --no-lockfile + - name: Run Tests + run: yarn test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6094450..0000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -branches: - only: - - master - # npm version tags - - /^v\d+\.\d+\.\d+/ - -language: node_js -node_js: - - "8" - -sudo: false - -cache: - npm: false - yarn: true - -before_install: - - curl -o- -L https://yarnpkg.com/install.sh | bash - - export PATH=$HOME/.yarn/bin:$PATH - -install: - - yarn install - -script: - - yarn test