Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
Signed-off-by: Yuji Ito <llamerada.jp@gmail.com>
  • Loading branch information
llamerada-jp committed Jun 25, 2023
1 parent 0f15647 commit a2093fc
Show file tree
Hide file tree
Showing 4 changed files with 1,753 additions and 1,683 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
test-node:
name: CI
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- name: setup go
uses: actions/setup-go@v4
with:
go-version: "1.20"
check-latest: true
cache-dependency-path: "go.sum"
- name: cache setup files
uses: actions/cache@v3
with:
path: |
build
node_modules
key: ${{ runner.os }}-${{ hashFiles('Makefile') }}-${{hashFiles('package-lock.json')}}
- shell: bash
run: |
echo '{ "google_analytics_tracking_id":"DUMMY", "google_api_key":"DUMMY", "google_map_id":"DUMMY"}' > keys.json
./ci.sh
8 changes: 8 additions & 0 deletions ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -eux

if [ ! -e "build" ] || [ ! -e "node_modules" ]; then
make setup
fi
make test
Loading

0 comments on commit a2093fc

Please sign in to comment.