Closed andrewkirima closed 3 years ago
@andrewkirima a screenshot of the last few lines of the error message is not enough to debug this, can you show the full error logs from that step?
@andrewkirima a screenshot of the last few lines of the error message is not enough to debug this, can you show the full error logs from that step?
I updated my post to show the entire error log for that particular step in the job.
@andrewkirima the issue is coming from your build and is not related to Firebase, see the logs:
> sencha-web@0.1.0 build /home/runner/work/sencha-web/sencha-web
> react-scripts build && mv build/index.html build/app.html
Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run the following command: `npm update`
Treating warnings as errors because process.env.CI = true.
Most CI servers set it automatically.
Failed to compile.
./src/components/Footer/Footer.js
Line 158:19: The href attribute is required for an anchor to be keyboard accessible. Provide a valid, navigable address as the href value. If you cannot provide an href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md jsx-a11y/anchor-is-valid
./src/components/Navbar/Navbar.js
Line 3:8: 'facebook' is defined but never used no-unused-vars
Line 4:8: 'instagram' is defined but never used no-unused-vars
Line 5:8: 'linkedin' is defined but never used no-unused-vars
Line 6:8: 'twitter' is defined but never used no-unused-vars
Line 138:17: The href attribute is required for an anchor to be keyboard accessible. Provide a valid, navigable address as the href value. If you cannot provide an href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md jsx-a11y/anchor-is-valid
./src/components/Header/Header.js
Line 6:8: 'newsletterCover' is defined but never used no-unused-vars
Looks like you have some simple lint errors which are stopping your build. You probably did not notice these in development because they might have been classified as warnings.
If you run npm run build
on your own machine you should be able to see these same logs and fix them.
Thanks big time @samtstern ! It worked. The whole time I've been having that issue but I didn't think it was a problem because it would always work when I ran yarn run build
to deploy from my local machine.
Action config
Error message
Expected behavior
Run through the entire workflow and deploy when I push to the master repo.
Actual behavior
Fails at the Install dependencies & build part of my GitHub action