From afc3e7363af6249cdcfb2437143622a696aba0dc Mon Sep 17 00:00:00 2001 From: Nicolas Ledez Date: Thu, 7 Sep 2023 17:25:25 +0200 Subject: [PATCH] Remove travis and move CI to Github actions --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ .github/workflows/release.yml | 1 - .travis.yml | 22 ---------------------- 3 files changed, 24 insertions(+), 23 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 0000000000..abd228df5d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +--- +name: "Kitsu CI" + +on: + pull_request: + branches: + - master + push: + branches: + - master + +jobs: + ci: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Run tests + env: + NODE_OPTIONS: "--max_old_space_size=8192" + run: | + npm ci + npm run lint -- --quiet + npm run test:unit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a1b252260b..79341631e9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,6 @@ jobs: env: NODE_OPTIONS: "--max_old_space_size=8192" run: | - npm ci npm run build GIT_COMMIT="$(git rev-parse HEAD)" GIT_TAG="$(git describe --tags)" diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 347b6e3e5b..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: node_js -node_js: - - "16" -env: - global: - - NODE_ENV=test -before_install: - - git config --global url."https://github.com/".insteadOf ssh://git@github.com - - git config --global url."https://".insteadOf git:// -script: - - npm ci - - npm run lint -- --quiet - - npm run test:unit -branches: - only: - - master - except: - - build -addons: - apt: - packages: - - libgif-dev