Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
linhntaim committed Nov 6, 2023
2 parents b8d4699 + c27eb01 commit 977386e
Show file tree
Hide file tree
Showing 13 changed files with 571 additions and 925 deletions.
7 changes: 7 additions & 0 deletions .coveralls.yml.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
service_name: $CI_NAME
service_job_id: $CI_JOB_ID
service_build_url: $CI_BUILD_URL
service_branch: $CI_BRANCH
service_pull_request: $CI_PULL_REQUEST

repo_token: $COVERALLS_REPO_TOKEN
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: build
run-name: ${{ github.actor }} is making a build
on:
push:
branches:
- master
jobs:
test-coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Information
run: |
echo "Node.js"
node -v
echo "npm"
npm -v
- name: Install
run: npm ci
- name: Test
run: |
npm test
mkdir coverage
npm run test:report > coverage/test.lcov
- name: Publish test result to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ lerna-debug.log*
*.sw?

# Test results
.coveralls.yml
.nyc_output
coverage

Expand Down
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ lerna-debug.log*

# Test results
.nyc_output
.coveralls.yml
coverage

# Common
Expand All @@ -41,6 +42,8 @@ babel.config.*
.nycrc
.nycrc.*
nyc.config.js
.coveralls.yml.example
.travis.yml
.github
/tests
/src
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# dotenv-packed

[![NPM version](https://img.shields.io/npm/v/dotenv-packed.svg?style=flat-square)](https://www.npmjs.com/package/dotenv-packed)
[![Travis (.org)](https://img.shields.io/travis/com/linhntaim/dotenv-packed?style=flat-square)](https://app.travis-ci.com/github/linhntaim/dotenv-packed)
[![Coveralls github](https://img.shields.io/coveralls/github/linhntaim/dotenv-packed?style=flat-square)](https://coveralls.io/github/linhntaim/dotenv-packed)
[![NPM](https://img.shields.io/npm/l/dotenv-packed?style=flat-square)](https://github.com/linhntaim/dotenv-packed/blob/master/LICENSE)
[![Github Actions](https://img.shields.io/github/actions/workflow/status/linhntaim/dotenv-packed/build.yml?style=flat-square)](https://github.com/linhntaim/dotenv-packed/actions/workflows/build.yml)
[![Coveralls](https://img.shields.io/coveralls/github/linhntaim/dotenv-packed?style=flat-square)](https://coveralls.io/github/linhntaim/dotenv-packed)
[![License](https://img.shields.io/npm/l/dotenv-packed?style=flat-square)](https://github.com/linhntaim/dotenv-packed/blob/master/LICENSE)

All-in-one pack to load environment variables from `.env` file, then expand and convert them.
Powered by
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
});
exports["default"] = void 0;
var _dotenv = _interopRequireDefault(require("dotenv"));
var _dotenvConversion = _interopRequireDefault(require("dotenv-conversion"));
var _dotenvExpand = _interopRequireDefault(require("dotenv-expand"));
var _dotenvFlow = _interopRequireDefault(require("dotenv-flow"));
var _dotenvConversion = _interopRequireDefault(require("dotenv-conversion"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function load(useFlow, options) {
if (useFlow) {
Expand Down
Loading

0 comments on commit 977386e

Please sign in to comment.