From d49be457f8122f8804c60f9c461ccc6be625e78e Mon Sep 17 00:00:00 2001 From: LuanRT Date: Sat, 11 Feb 2023 20:23:12 -0300 Subject: [PATCH] chore: clean up workflow files --- .github/labeler_config.yml | 8 +------- .github/release.yml | 20 -------------------- .github/workflows/lint.yml | 23 +++++++++++++---------- .github/workflows/release-please.yml | 5 +++-- .github/workflows/test.yml | 18 ++++++++++++++++++ .github/workflows/tests.yml | 23 ----------------------- 6 files changed, 35 insertions(+), 62 deletions(-) delete mode 100644 .github/release.yml create mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/tests.yml diff --git a/.github/labeler_config.yml b/.github/labeler_config.yml index c98cd189a..9eb5d8b11 100644 --- a/.github/labeler_config.yml +++ b/.github/labeler_config.yml @@ -2,13 +2,7 @@ version: 1 labels: - label: "breaking-change" title: "^refactor!:.*" - - - label: "enhancement" - title: "^feat:.*" - - - label: "bug" - title: "^fix:.*" - + - label: "github" files: - ".github/.*" diff --git a/.github/release.yml b/.github/release.yml deleted file mode 100644 index 00d87a17d..000000000 --- a/.github/release.yml +++ /dev/null @@ -1,20 +0,0 @@ -changelog: - exclude: - labels: - - ignore-for-release - authors: - - octocat - categories: - - title: Breaking Changes - labels: - - Semver-Major - - breaking-change - - title: New Features - labels: - - Semver-Minor - - enhancement - - title: Bug Fixes - - bug - - title: Other Changes - labels: - - "*" \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 67987cd68..5c568b447 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,15 +1,18 @@ -name: Lint +name: lint -on: [push, pull_request] +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] jobs: - eslint: - name: Lint + lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - - name: npm install and lint - run: | - npm install - npm run lint \ No newline at end of file + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 16 + - run: npm ci + - run: npm run lint \ No newline at end of file diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index a8923acdc..f04086219 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -1,14 +1,15 @@ +name: release-please + on: push: branches: - main -name: release-please + jobs: release-please: permissions: contents: write pull-requests: write - runs-on: ubuntu-latest steps: - uses: google-github-actions/release-please-action@v3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..a15db51e8 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,18 @@ +name: test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 16 + - run: npm ci + - run: npm run test \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index 7aa045d60..000000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Tests - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [ 16.x, 18.x ] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - - run: npm run test \ No newline at end of file