From bf2975f2197c96d760c53436fcc2ab06b5e5e376 Mon Sep 17 00:00:00 2001 From: Florent Mathieu Date: Fri, 28 Jun 2024 11:18:15 -1000 Subject: [PATCH] ci: uncomment --- .github/workflows/ci.yaml | 64 +++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 36 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 987a93ad4a..13627039ca 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,49 +29,47 @@ jobs: env: GH_TOKEN: ${{ secrets.GH_TOKEN }} - # - run: echo "Building" - # - run: npm exec -- lerna run build --concurrency=2 - - # - uses: actions/upload-artifact@v4 - # with: - # name: dist-artifact - # path: packages/**/dist + - run: npm exec -- lerna run build --concurrency=2 + - uses: actions/upload-artifact@v4 + with: + name: dist-artifact + path: packages/**/dist lint: needs: [initialize] runs-on: ubuntu-latest steps: - run: echo "Linting" - # - uses: actions/checkout@v4 - # - uses: actions/setup-node@v4 - # with: - # node-version-file: .nvmrc - # cache: npm + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: npm - # - run: npm ci --ignore-scripts - # - run: npm run lint:ci + - run: npm ci --ignore-scripts + - run: npm run lint:ci test: needs: [initialize] runs-on: ubuntu-latest steps: - run: echo "Testing" - # - uses: actions/checkout@v4 - # - uses: actions/setup-node@v4 - # with: - # node-version-file: .nvmrc - # cache: npm + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: npm - # - run: npm ci --ignore-scripts - # - uses: actions/download-artifact@v4 - # with: - # name: dist-artifact - # path: packages + - run: npm ci --ignore-scripts + - uses: actions/download-artifact@v4 + with: + name: dist-artifact + path: packages - # - run: npm run test:ci - # - run: npm exec -- coveralls < .cache/coverage/lcov.info - # env: - # COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + - run: npm run test:ci + - run: npm exec -- coveralls < .cache/coverage/lcov.info + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} deploy-preview: if: contains(needs.initialize.outputs.teams, 'Writers') @@ -96,9 +94,7 @@ jobs: NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} deploy-gh-pages: - # if: contains(needs.initialize.outputs.teams, 'Writers') && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next') - - if: contains(needs.initialize.outputs.teams, 'Writers') + if: contains(needs.initialize.outputs.teams, 'Writers') && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next') needs: [initialize, lint, test] runs-on: ubuntu-latest environment: @@ -131,12 +127,8 @@ jobs: publish: needs: [initialize, lint, test] runs-on: ubuntu-latest - # if: contains(needs.initialize.outputs.teams, 'Maintainers') && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next') + if: contains(needs.initialize.outputs.teams, 'Maintainers') && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next') steps: - - env: - TEAMS: ${{needs.initialize.outputs.teams}} - run: echo "$TEAMS" - - run: echo "Publishing" # - uses: actions/checkout@v4 # with: # fetch-depth: 0 # Lerna requires the full history, including tags