Removing eslint issue #52
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
tags: | |
- 'v*.*.*' | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup MetaCall CLI | |
run: wget -O - https://raw.githubusercontent.com/metacall/install/master/install.sh | sh | |
- name: Setup NodeJS | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
registry-url: https://registry.npmjs.org | |
- name: Update NPM | |
run: npm install -g npm@latest | |
- name: Installing Dependencies | |
run: npm i | |
- name: Lint | |
run: npm run lint | |
- name: Build | |
run: npm run build | |
# TODO: Have working unit tests generated | |
# - name: Run Unit Tests | |
# run: | | |
# npm run unit | |
# TODO: Integration tests requires metacall/FaaS or dashboard.metacall.io credentials | |
# TODO: unComment when we are ready for integration tests | |
# - name: Run Tests | |
# run: | | |
# npm run test | |
- name: Publish | |
uses: JS-DevTools/npm-publish@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
access: 'public' | |
token: ${{ secrets.NPM_AUTH_TOKEN }} |