diff --git a/.github/workflows/run-unit-tests.yaml b/.github/workflows/run-unit-tests.yaml new file mode 100644 index 00000000..048aee37 --- /dev/null +++ b/.github/workflows/run-unit-tests.yaml @@ -0,0 +1,20 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Node.js CI + +on: ['push'] + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js 20 + uses: actions/setup-node@v4 + with: + node-version: '20.x' + cache: 'npm' + - run: npm ci + - run: npm test diff --git a/.gitignore b/.gitignore index dd2fe117..37876a0d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,6 @@ /.nyc_output /dist /lib -/package-lock.json /tmp /.build /yarn.lock diff --git a/README.md b/README.md index 2eb8222f..1fd30713 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ $ npm install -g codify $ codify COMMAND running command... $ codify (--version) -codify/0.4.0 darwin-arm64 node-v20.15.0 +codify/0.5.0 darwin-arm64 node-v20.15.1 $ codify --help [COMMAND] USAGE $ codify COMMAND @@ -45,7 +45,7 @@ USAGE FLAGS -o, --output=