diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..b4a85d8 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,33 @@ +name: Lint + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: '20.x' + + - name: Install dependencies + run: yarn install + working-directory: linter + + - name: Build linter + run: yarn build-ts + working-directory: linter + + - name: Run linter + run: yarn run-linter + working-directory: linter diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 982d314..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: node_js -node_js: - - "12" -cache: - yarn: true - directories: - - $HOME/.yarn-cache -install: bash travis-install.sh -script: bash travis-run.sh diff --git a/README.md b/README.md index 0ef1e64..fdcece3 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # store-repos -[![Build Status](https://travis-ci.org/cloud-emoticon/store-repos.svg?branch=master)](https://travis-ci.org/cloud-emoticon/store-repos) - The repository store, revived on GitHub ## Repository metadata requirements diff --git a/travis-install.sh b/travis-install.sh deleted file mode 100755 index 9d85296..0000000 --- a/travis-install.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -set -e - -pushd linter -yarn install -yarn build-ts -popd diff --git a/travis-run.sh b/travis-run.sh deleted file mode 100755 index ac7cffa..0000000 --- a/travis-run.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -set -e - -pushd linter -yarn run-linter -popd