diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f4914e7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: github-writer +on: [push] + +jobs: + build: + name: Building Github-Writer + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set Node.js 16.x + uses: actions/setup-node@v3 + with: + node-version: 16.x + + - name: Run install + uses: borales/actions-yarn@v4 + with: + cmd: install # will run `yarn install` command + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # if needed + - name: Build github-writer + uses: borales/actions-yarn@v4 + with: + cmd: build # will run `yarn build` command + + - name: Build dev github-writer + uses: borales/actions-yarn@v4 + with: + cmd: build-dev # will run `yarn build-dev` command + + - name: Running Lint + uses: borales/actions-yarn@v4 + with: + cmd: lint # will run `yarn build-dev` command diff --git a/.gitignore b/.gitignore index 13411c2..28feabd 100644 --- a/.gitignore +++ b/.gitignore @@ -5,5 +5,4 @@ /build/ /coverage/ /.yalc/ -/tests/config.json /*.lock diff --git a/tests/config.json b/tests/config.json new file mode 100644 index 0000000..d53076b --- /dev/null +++ b/tests/config.json @@ -0,0 +1,9 @@ +{ + "github" : { + "repo": "username/reponame", + "credentials": { + "name": "username", + "password": "password" + } + } + }