aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorEric Jeker <[email protected]>2022-01-10 04:05:49 +0800
committerGitHub <[email protected]>2022-01-09 15:05:49 -0500
commitc7888905a0e1936f782b329a641f3553b1126872 (patch)
treeebac2de4b99005a42a2992a5b368ef064ddb042a /.github/workflows
parentf2c7228065821beabf55c5aaf4d285a940765821 (diff)
downloadfaker-c7888905a0e1936f782b329a641f3553b1126872.tar.xz
faker-c7888905a0e1936f782b329a641f3553b1126872.zip
feat(github): add github actions (#35)
Co-authored-by: Shinigami <[email protected]>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..7accdb54
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,32 @@
+name: "Continuous Integration"
+
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ name: "Testing"
+ needs: lint
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-node@v2
+ with:
+ node-version: '16'
+ cache: 'npm'
+ - run: npm ci
+ - run: npm run test
+ lint:
+ runs-on: ubuntu-latest
+ name: "Linting"
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-node@v2
+ with:
+ node-version: '16'
+ cache: 'npm'
+ - run: npm ci
+ - run: npm run lint