From 6cf66707c2769e395dde273f7570abfd00d52b0f Mon Sep 17 00:00:00 2001 From: Yasuaki Uechi Date: Wed, 14 Aug 2019 19:01:21 +0900 Subject: [PATCH] GitHub Actions (#2) * add workflow * fix: add @master * fix: test * fix * onpush * fix paths * add badge --- .github/workflows/api.yml | 16 ++++++++++++++++ .github/workflows/web.yml | 17 +++++++++++++++++ README.md | 2 ++ 3 files changed, 35 insertions(+) create mode 100644 .github/workflows/api.yml create mode 100644 .github/workflows/web.yml diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml new file mode 100644 index 0000000..1c1ca6d --- /dev/null +++ b/.github/workflows/api.yml @@ -0,0 +1,16 @@ +name: API +on: + push: + paths: + - api/* + pull_request: + paths: + - api/* +jobs: + test: + name: Test Install + runs-on: ubuntu-latest + steps: + - uses: actions/setup-node@master + - uses: actions/checkout@master + - run: yarn --cwd api install \ No newline at end of file diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml new file mode 100644 index 0000000..2f2a434 --- /dev/null +++ b/.github/workflows/web.yml @@ -0,0 +1,17 @@ +name: Web App +on: + push: + paths: + - web/* + pull_request: + paths: + - web/* +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/setup-node@master + - uses: actions/checkout@master + - run: yarn --cwd web install + - run: yarn --cwd web test \ No newline at end of file diff --git a/README.md b/README.md index 23c1519..36320f8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # namae +[![Actions Status](https://wdp9fww0r9.execute-api.us-west-2.amazonaws.com/production/badge/uetchy/namae](https://wdp9fww0r9.execute-api.us-west-2.amazonaws.com/production/results/uetchy/namae) + > name new project. namae saves your time searching around registries and checking if the desired name is ready for use.