For release 0.4, I will work on the CI/CD area on the telescope project. I already fixed one issue https://github.com/Seneca-CDOT/telescope/issues/1336, the pull request https://github.com/Seneca-CDOT/telescope/pull/1345
It takes a little time to this issue. I learned a lot about Github action from this issue.
- Adding if condition
- if: matrix.os == 'ubuntu-latest'
run: npm run test-ci
- Run multiple jobs in parallel.
Prettier-Check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: npm install && npm run prettier-check
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: npm install && npm run eslint
- add cache.
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
We will redo the cache if the file changed package-lock.json
.
Next step.
I am currently working on the second issue https://github.com/Seneca-CDOT/telescope/issues/1301 to automate the release process about telescope.
Top comments (0)