Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga authored Aug 21, 2024
1 parent 1234bfd commit 93b28ae
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,42 +30,38 @@ jobs:
registry-url: https://registry.npmjs.org

- name: Update NPM
shell: bash
run: npm install -g npm@latest

- name: Installing Dependencies
shell: bash
run: npm i

- name: Lint
shell: bash
run: npm run lint

- name: Build
shell: bash
run: npm run build

# TODO: Have working unit tests generated
# - name: Run Unit Tests
# run: |
# npm run test

- name: Setup MetaCall CLI
- name: Setup MetaCall CLI (unix)
if: matrix.os == 'ubuntu-latest'
run: wget -O - https://raw.githubusercontent.com/metacall/install/master/install.sh | sh

- name: Setup MetaCall CLI (windows)
if: matrix.os == 'windows-latest'
shell: powershell
run: # Add Windows-specific MetaCall CLI installation here
run: |
cmd.exe /c "powershell -NoProfile -ExecutionPolicy unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/metacall/install/master/install.ps1')))""
- name: Run Integration Tests
shell: bash
run: ./test.sh

- name: Publish
uses: JS-DevTools/npm-publish@v3
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
with:
access: 'public'
token: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit 93b28ae

Please sign in to comment.