Skip to content

Commit

Permalink
Merge pull request #20 from github/add-ci-build-step
Browse files Browse the repository at this point in the history
Add ci build step
  • Loading branch information
keithamus committed Dec 1, 2022
2 parents 10072e2 + 642c9ce commit 7512dec
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Node CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: npm install, build, and test
run: |
npm it
env:
CI: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
23 changes: 23 additions & 0 deletions examples/one.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const obj = {
one: 1,
two: 2,
three: 3,
}

;('this config avoids semicolons at the end of statements and uses single quotes for strings')

async function heresAFunctionWhichSpansMulitpleLinesAnd(
that,
includes,
many,
args,
to,
demonstrait,
trailing,
func,
commas
) {
return obj
}

const arrowFunctions = avoidParens => 1
28 changes: 27 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
"author": "GitHub Inc.",
"main": "index.js",
"scripts": {
"test:update": "prettier --config ./index.js --write examples/",
"test": "prettier --config ./index.js --check examples/",
"postpublish": "npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'"
},
"devDependencies": {
"prettier": "^2.8.0"
}
}

0 comments on commit 7512dec

Please sign in to comment.