Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

New Error setting up Ionic, used to work #12

Closed
ernesto-butto opened this issue Mar 2, 2021 · 6 comments
Closed

New Error setting up Ionic, used to work #12

ernesto-butto opened this issue Mar 2, 2021 · 6 comments

Comments

@ernesto-butto
Copy link

Hello,

Tried this action stopped working this morning, I have been using it for months now without a problem, but today I got this error. I tried coturiv/setup-ionic@v1 and coturiv/setup-ionic@v1.0.3

2021-03-02T09:08:42.9822522Z ##[group]Run coturiv/setup-ionic@v1.0.3
2021-03-02T09:08:42.9823262Z with:
2021-03-02T09:08:42.9824152Z   cordova-version: 8
2021-03-02T09:08:42.9824945Z   install-java: false
2021-03-02T09:08:42.9825818Z   install-pods: false
2021-03-02T09:08:42.9826523Z ##[endgroup]
2021-03-02T09:09:01.2919926Z ##[error]{"killed":false,"code":1,"signal":null,"cmd":"sudo chown -R $USER:$GROUP ~/.npm"}
2021-03-02T09:09:12.1676678Z Cordova/Ionic environment has been setup successfully.
2021-03-02T09:09:13.5749366Z 
2021-03-02T09:09:13.5751014Z Ionic:
2021-03-02T09:09:13.5751616Z 
2021-03-02T09:09:13.5752739Z    Ionic CLI          : 6.13.1 (/usr/local/lib/node_modules/@ionic/cli)
2021-03-02T09:09:13.5753929Z    Ionic Framework    : not installed
2021-03-02T09:09:13.5755631Z    @ionic/app-scripts : not installed
2021-03-02T09:09:13.5756399Z 
2021-03-02T09:09:13.5757237Z Cordova:
2021-03-02T09:09:13.5757823Z 
2021-03-02T09:09:13.5758970Z    Cordova CLI       : 8.1.2 (cordova-lib@8.1.1)
2021-03-02T09:09:13.5760256Z    Cordova Platforms : not available
2021-03-02T09:09:13.5761421Z    Cordova Plugins   : not available
2021-03-02T09:09:13.5762247Z 
2021-03-02T09:09:13.5763145Z Utility:
2021-03-02T09:09:13.5763541Z 
2021-03-02T09:09:13.5764859Z    cordova-res : not installed
2021-03-02T09:09:13.5765838Z    native-run  : not installed
2021-03-02T09:09:13.5766313Z 
2021-03-02T09:09:13.5766910Z System:
2021-03-02T09:09:13.5767276Z 
2021-03-02T09:09:13.5768021Z    Android SDK Tools : 26.1.1 (/usr/local/lib/android/sdk)
2021-03-02T09:09:13.5768971Z    NodeJS            : v14.15.5 (/usr/local/bin/node)
2021-03-02T09:09:13.5769760Z    npm               : 6.14.11
2021-03-02T09:09:13.5770403Z    OS                : Linux 5.4
2021-03-02T09:09:13.5770822Z 
2021-03-02T09:09:13.5771171Z 
2021-03-02T09:09:14.0247208Z Cordova: 8.1.2 (cordova-lib@8.1.1)
2021-03-02T09:09:14.0248071Z 
2021-03-02T09:09:14.0453985Z Post job cleanup.

Thank you for writing this action.

@coturiv
Copy link
Owner

coturiv commented Mar 2, 2021

Let me check and will update you shortly, thanks!

@ernesto-butto
Copy link
Author

Thank you @coturiv , we are relying on this one. Please let us know 👍

@coturiv
Copy link
Owner

coturiv commented Mar 7, 2021

Fixed in 1.04

@coturiv coturiv closed this as completed Mar 7, 2021
@outspokenmagazine
Copy link

Just wanted to say thinks for this fast fix!!

@ernesto-butto
Copy link
Author

Hello, thank you for the fix @coturiv, but I haven't been able to make it work with the latest ubuntu. Its probably me not understanding hot to use it. This is what I have now that is working

name: Build and Deploy
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
  pull_request:
    branches:
      - master
  workflow_dispatch:
jobs:
 build:
    name: Build and Deploy
    runs-on: ubuntu-16.04
    steps:
      - uses: actions/checkout@master

      - name: Setup Ionic
        # You may pin to the exact commit or the version.
        # uses: coturiv/setup-ionic@e3c08419ce85c61a98f4e2c2767660b66cd121ea
        uses: coturiv/setup-ionic@v1.0.3
        with:
          # Version range or exact version of Cordova to use
          cordova-version: 8 # optional, default is 9
          # Version range or exact version of Ionic to use
          # ionic-version: # optional
          # Whether to install Java
          install-java: false # optional, default is true
          # Whether to install CocoaPods
          install-pods: false # optional, default is true
      # Runs a single command using the runners shell
      - name: Instal Dependencies
        run: npm install

      # Runs a single command using the runners shell
      - name: Run build
        run: npm run ionic:build -- --prod
...

This is what I tried

name: Build and Deploy
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
  pull_request:
    branches:
      - master
  workflow_dispatch:
jobs:
 build:
    name: Build and Deploy
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      
      - name: Use coturiv/setup-ionic
        uses: coturiv/setup-ionic@v1
        with:
          java-version: 8
      - name: Use coturiv/setup-ionic
        uses: coturiv/setup-ionic@v1
        with:
          cordova-version: 8
     
      # Runs a single command using the runners shell
      - name: Run build
        run: npm run ionic:build -- --prod



@coturiv
Copy link
Owner

coturiv commented Mar 21, 2021

...

test: # make sure the action works on a clean machine without building
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - uses: actions/setup-java@v1
      with:
        java-version: 1.8
    - name: Use coturiv/setup-ionic
      uses: coturiv/setup-ionic@v1
      with:
          cordova-version: 8
...

I can see they are working well on Ubuntu.

https://github.com/coturiv/setup-ionic/blob/master/.github/workflows/ci.yml
https://github.com/coturiv/setup-ionic/runs/2051923334

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants