Skip to content

Commit 2b42e09

Browse files
authored
Merge pull request #2 from ColumbiaOSS/tkp/actions
setup actions
2 parents cc9a6c5 + 6cc932f commit 2b42e09

File tree

3 files changed

+62
-1
lines changed

3 files changed

+62
-1
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/build.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build Status
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- v*
9+
paths-ignore:
10+
- CONTRIBUTING.md
11+
- LICENSE
12+
- README.md
13+
pull_request:
14+
workflow_dispatch:
15+
16+
jobs:
17+
build:
18+
runs-on: ${{ matrix.os }}
19+
20+
strategy:
21+
matrix:
22+
os: [ubuntu-latest]
23+
node-version: [14.x]
24+
25+
steps:
26+
- uses: actions/checkout@v3
27+
28+
- name: Use Node.js ${{ matrix.node-version }}
29+
uses: actions/setup-node@v3
30+
with:
31+
node-version: ${{ matrix.node-version }}
32+
cache: 'npm'
33+
cache-dependency-path: package-lock.json
34+
35+
- name: Install dependencies
36+
run: |
37+
npm install
38+
39+
- name: Build
40+
run: |
41+
npm run build
42+
43+
- name: Lint
44+
run: |
45+
npm run lint
46+
47+
- name: Test
48+
run: |
49+
npm run test
50+
51+
- name: Upload coverage
52+
uses: codecov/codecov-action@v3

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# example-project-javascript
2-
32
Example javascript project
43

4+
[![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)
5+
[![codecov](https://codecov.io/gh/ColumbiaOSS/example-project-javascript/branch/main/graph/badge.svg)](https://codecov.io/gh/ColumbiaOSS/example-project-javascript)
6+
7+
58
## Details
69
This project uses the TypeScript dialect of JavaScript. It has the following commands:
710
- `npm install`: install dependencies

0 commit comments

Comments
 (0)