Feat/rows in repetition champ #113
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DS Api client | |
on: pull_request | |
jobs: | |
tests: | |
name: Run unit tests | |
if: ${{ !github.event.pull_request.draft }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checks-out repository | |
uses: actions/checkout@v3 | |
- name: Use Node.js 16.x.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- name: run test unit | |
env: | |
API_URL: ${{secrets.API_URL}} | |
API_TOKEN: ${{secrets.API_TOKEN}} | |
NODE_TLS_REJECT_UNAUTHORIZED: 0 | |
run: | | |
npm ci | |
npm run lint | |
API_URL=${{secrets.API_URL}}; API_TOKEN=${{secrets.API_TOKEN}}; npm run test | |
- name: run build | |
run: npm run build | |
- name: prepare deploy | |
if: ${{ github.base_ref == 'dev' || github.base_ref == 'main' }} | |
run: | | |
mkdir target | |
cp -r dist target/. | |
cp package.json target/. | |
cp README.md target/. | |
cp -r src target/. | |
- name: Deploy | |
if: ${{ github.base_ref == 'dev' || github.base_ref == 'main' }} | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: dev-release/test-1 | |
FOLDER: target | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |