Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update the CI workflow #341

Merged
merged 1 commit into from Dec 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
61 changes: 43 additions & 18 deletions .github/workflows/ci.yml
Expand Up @@ -5,33 +5,58 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: NPM install
uses: bahmutov/npm-install@v1

- name: Run tests 🧪
run: npm test

- name: Run demos 📊
run: |
npm run demo
npm run demo2
npm run demo3
npm run demo4
npm run demo5
npm run demo6
npm run demo7
# hmm why are some demos skipped?
npm run demo11
npm run demo12
START_SERVER_AND_TEST_INSECURE=1 npm run demo9
npm run demo-cross-env
npm run demo-commands
npm run demo-multiple
- name: Run demo 1 📊
run: npm run demo

- name: Run demo 2 📊
run: npm run demo2

- name: Run demo 3 📊
run: npm run demo3

- name: Run demo 4 📊
run: npm run demo4

- name: Run demo 5 📊
run: npm run demo5

- name: Run demo 6 📊
run: npm run demo6

- name: Run demo 7 📊
run: npm run demo7

# hmm why are some demos skipped?

- name: Run demo 11 📊
run: npm run demo11

- name: Run demo 12 📊
run: npm run demo12

- name: Run demo 9 📊
run: START_SERVER_AND_TEST_INSECURE=1 npm run demo9

- name: Run demo cross env 📊
run: npm run demo-cross-env

- name: Run demo commands 📊
run: npm run demo-commands

- name: Run demo multiple 📊
run: npm run demo-multiple

- name: Semantic Release 🚀
uses: cycjimmy/semantic-release-action@v2
if: github.ref == 'refs/heads/master'
uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}