diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 076adab..0000000 --- a/.drone.yml +++ /dev/null @@ -1,16 +0,0 @@ -kind: pipeline -type: docker -name: default - -steps: -- name: test - image: owncloudci/nodejs:14 - commands: - - npm install - - npm test - -trigger: - ref: - - refs/heads/master - - refs/tags/** - - refs/pull/** diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..361e4a6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: + push: + branches: + - master + tags: + - '**' + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 + + - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 + with: + node-version: 20 + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm test diff --git a/.github/workflows/lint-pr-title.yml b/.github/workflows/lint-pr-title.yml new file mode 100644 index 0000000..94cdcf7 --- /dev/null +++ b/.github/workflows/lint-pr-title.yml @@ -0,0 +1,18 @@ +name: Lint PR title + +on: + pull_request: + types: + - opened + - edited + - synchronize + +permissions: {} + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}