Skip to content

Commit 6612ff7

Browse files
committed
chore(ci): Switch to GitHub Actions (ionic-team#4309)
1 parent 8711041 commit 6612ff7

3 files changed

Lines changed: 63 additions & 193 deletions

File tree

.circleci/config.yml

Lines changed: 0 additions & 193 deletions
This file was deleted.

.github/workflows/cd.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CD
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
name: Build, Test, and Deploy
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 30
13+
steps:
14+
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: 12.x
18+
- uses: actions/checkout@v2
19+
- name: Restore Dependency Cache
20+
uses: actions/cache@v1
21+
with:
22+
path: ~/.npm
23+
key: ${{ runner.OS }}-dependency-cache-${{ hashFiles('**/package.json') }}
24+
- run: npm install
25+
- run: npm run bootstrap
26+
- run: npm run publish:ci -- --yes
27+
env:
28+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
29+
GIT_AUTHOR_NAME: Ionitron
30+
GIT_AUTHOR_EMAIL: [email protected]
31+
GIT_COMMITTER_NAME: Ionitron
32+
GIT_COMMITTER_EMAIL: [email protected]

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- master
7+
8+
jobs:
9+
build-and-test:
10+
name: Build and Test (Node ${{ matrix.node }})
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 30
13+
strategy:
14+
matrix:
15+
node:
16+
- 12.x
17+
- 10.x
18+
steps:
19+
- uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node }}
22+
- uses: actions/checkout@v2
23+
- name: Restore Dependency Cache
24+
uses: actions/cache@v1
25+
with:
26+
path: ~/.npm
27+
key: ${{ runner.OS }}-dependency-cache-${{ hashFiles('**/package.json') }}
28+
- run: npm install
29+
- run: npm run bootstrap
30+
- run: npm run lint
31+
- run: npm test

0 commit comments

Comments
 (0)