DEV Community

Andy Yang
Andy Yang

Posted on

Release 0.41

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

Alt Text

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
Enter fullscreen mode Exit fullscreen mode
  • 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
Enter fullscreen mode Exit fullscreen mode
  • 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') }}
Enter fullscreen mode Exit fullscreen mode

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)