Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Error: Must provide token for LHCI target #344

Closed
kaihendry opened this issue Jun 7, 2020 · 2 comments
Closed

Error: Must provide token for LHCI target #344

kaihendry opened this issue Jun 7, 2020 · 2 comments

Comments

@kaihendry
Copy link

I did see #144
I'm not using serverBaseUrl. So I am a little confused where I am going wrong!

https://travis-ci.org/github/kaihendry/ltabus/jobs/695606273#L282

https://github.com/kaihendry/ltabus/blob/master/.travis.yml#L34-L39
I'm using the lighthouse ci action here: https://github.com/kaihendry/ltabus/blob/master/.github/workflows/main.yml

Many thanks,

@patrickhulce
Copy link
Collaborator

Thanks for filing @kaihendry!

You have defined Lighthouse CI twice. You don't need to run it both with travis and with GitHub actions. If the Github action is working for you, then feel free to use that and delete your travis config.

As for what's wrong. The travis config is using the arguments on the incorrect command.

If you don't want to use autorun, it should be

        - npm install -g @lhci/cli@0.3.x
        - lhci collect --start-server-command="PORT=3000 go run ." --url=http://localhost:3000/
        - lhci upload --target=temporary-public-storage

PS v0.4.0 with Lighthouse 6.0 has been released if you want to check that out :)

@kaihendry
Copy link
Author

Thank you Patrick, I've opted to use the treosh/lighthouse-ci-action@v3 but I am running into this issue with showing the results: treosh/lighthouse-ci-action#60

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

No branches or pull requests

2 participants