From 6cc932f6d336f1bb02c5f19e58b8b1ca7e5cd10f Mon Sep 17 00:00:00 2001 From: Tim Paine Date: Thu, 2 Mar 2023 16:00:42 -0500 Subject: [PATCH] setup actions --- .github/dependabot.yml | 6 +++++ .github/workflows/build.yml | 52 +++++++++++++++++++++++++++++++++++++ README.md | 5 +++- 3 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/build.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5ace460 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..849c4ac --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,52 @@ +name: Build Status + +on: + push: + branches: + - main + tags: + - v* + paths-ignore: + - CONTRIBUTING.md + - LICENSE + - README.md + pull_request: + workflow_dispatch: + +jobs: + build: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest] + node-version: [14.x] + + steps: + - uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + cache-dependency-path: package-lock.json + + - name: Install dependencies + run: | + npm install + + - name: Build + run: | + npm run build + + - name: Lint + run: | + npm run lint + + - name: Test + run: | + npm run test + + - name: Upload coverage + uses: codecov/codecov-action@v3 diff --git a/README.md b/README.md index cb22899..e1c9efd 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,10 @@ # example-project-javascript - Example javascript project +[![Build Status](https://github.com/ColumbiaOSS/example-project-javascript/workflows/Build%20Status/badge.svg?branch=main)](https://github.com/ColumbiaOSS/example-project-javascript/actions?query=workflow%3A%22Build+Status%22) +[![codecov](https://codecov.io/gh/ColumbiaOSS/example-project-javascript/branch/main/graph/badge.svg)](https://codecov.io/gh/ColumbiaOSS/example-project-javascript) + + ## Details This project uses the TypeScript dialect of JavaScript. It has the following commands: - `npm install`: install dependencies