diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 935614ef..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,45 +0,0 @@ -version: 2.1 - -orbs: - node: circleci/node@4.1 - -jobs: - build-and-test: - docker: - - image: cimg/node:lts - steps: - - checkout - - node/install-packages: - pkg-manager: npm - - run: - name: Run linter - command: npm run lint - - run: - name: Run tests - command: npm run test - - run: - name: Build - command: npm run compile - - run: - name: Pack - command: npm pack - - run: - name: Copy package to artifacts directory - command: mkdir -p dist && cp splunk-otel-*.tgz dist - - store_artifacts: - path: dist/ - destination: built-packages - - persist_to_workspace: - root: ~/ - paths: project/ - - run: - name: Report coverage - command: npm run codecov - -workflows: - build: - jobs: - - build-and-test: - filters: - tags: - only: /^v[0-9]+\.[0-9]+\.[0-9]+.*/ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..ca616ac9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: Continuous Integration +on: + pull_request: + push: + branches: + - main +permissions: read-all + +jobs: + unit-tests: + runs-on: ubuntu-latest + permissions: read-all + strategy: + fail-fast: false + matrix: + nodejs: ['10', '12', '14', '16'] + steps: + - name: Checkout + uses: actions/checkout@v1 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.nodejs }} + - name: Install NPM dependencies + run: npm ci + - name: Lint + run: npm run lint + - name: Test + run: npm run test + - name: Build + run: npm run compile + - name: Report coverage + run: npm run codecov diff --git a/README.md b/README.md index d2f38676..b9f3dbfa 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ GitHub release (latest by date) + npm + node-current Codecov GitHub branch checks state

diff --git a/package.json b/package.json index c1b5bd2c..52f78e26 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "stats" ], "engines": { - "node": ">=8.0.0" + "node": ">=8.5.0 <17" }, "files": [ "index.js",