-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚧 progress: Define GitHub workflow to test build artifacts.
- Loading branch information
1 parent
6920fee
commit 9bffb20
Showing
5 changed files
with
89 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: ci | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
|
||
build: | ||
name: Continuous integration (build) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install 📦 | ||
uses: bahmutov/npm-install@v1 | ||
with: | ||
install-command: yarn --frozen-lockfile --ignore-scripts | ||
useRollingCache: true | ||
|
||
- name: Build 🏗️ | ||
run: yarn build | ||
|
||
- name: Archive build 💽 | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: dist | ||
path: dist | ||
retention-days: 1 | ||
|
||
test: | ||
needs: ["build"] | ||
name: Continuous integration (tests) | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
bundle: ["modern", "module", "cjs"] | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install 📦 | ||
uses: bahmutov/npm-install@v1 | ||
with: | ||
install-command: yarn --frozen-lockfile --ignore-scripts | ||
useRollingCache: true | ||
|
||
- name: Load build 💽 | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: dist | ||
path: dist | ||
|
||
- name: Test 🔬 | ||
run: yarn test:${{ matrix.bundle }} | ||
|
12 changes: 6 additions & 6 deletions
12
.github/workflows/ci:test.yml → .github/workflows/ci:cover.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: ci:lint-config | ||
on: | ||
- push | ||
- pull_request | ||
jobs: | ||
cover: | ||
name: Continuous integration (config linting) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install 📦 | ||
uses: bahmutov/npm-install@v1 | ||
with: | ||
install-command: yarn --frozen-lockfile --ignore-scripts | ||
useRollingCache: true | ||
|
||
- name: Lint config 👕 | ||
run: yarn lint-config |
12 changes: 6 additions & 6 deletions
12
.github/workflows/ci:build.yml → .github/workflows/ci:lint.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
name: ci:build | ||
name: ci:lint | ||
on: | ||
- push | ||
- pull_request | ||
jobs: | ||
test: | ||
name: Continuous integration (build) | ||
cover: | ||
name: Continuous integration (code linting) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install 🔧 | ||
- name: Install 📦 | ||
uses: bahmutov/npm-install@v1 | ||
with: | ||
install-command: yarn --frozen-lockfile --ignore-scripts | ||
useRollingCache: true | ||
|
||
- name: Build 🏗️ | ||
run: yarn ci:build | ||
- name: Lint 👕 | ||
run: yarn lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters