This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
const Tabs = ({active, list}) => ( | |
<div className="tabs"> | |
<div className="tabs__row"> | |
{list.map((tab, i) => (<div className="tabs__col"><button className={((i + 1) === active) ? "is-on" : ""} onClick={tab.label} onClick={tab.onClick} key={i} /></div>))} | |
</div> | |
</div> | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: React build | |
on: | |
push: # master, develop Branch에서 push 이벤트가 일어났을 때만 실행 | |
branches: | |
- master | |
- develop | |
jobs: | |
build: | |
runs-on: ubuntu-18.04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: React build | |
on: | |
push: # master, develop Branch에서 push 이벤트가 일어났을 때만 실행 | |
branches: | |
- master | |
- develop | |
jobs: | |
build: | |
runs-on: ubuntu-18.04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const core = require("@actions/core"); | |
const { IncomingWebhook } = require("@slack/webhook"); | |
async function run() { | |
try { | |
const GITHUB_EVENT = require(process.env.GITHUB_EVENT_PATH); | |
const GITHUB_WORKFLOW = process.env.GITHUB_WORKFLOW; | |
const ACTION_NAME = core.getInput("ACTION_NAME"); | |
const JOB = JSON.parse(core.getInput("JOB")); | |
const SLACK_WEBHOOK_URL = core.getInput("SLACK_WEBHOOK_URL"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Get yarn cache | |
id: yarn-cache | |
run: | | |
echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v1 | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: React build | |
on: | |
push: # master, develop Branch에서 push 이벤트가 일어났을 때만 실행 | |
branches: | |
- master | |
- develop | |
jobs: | |
build: | |
runs-on: ubuntu-18.04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: '*/15 * * * *' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
┌───────────── minute (0 - 59) | |
│ ┌───────────── hour (0 - 23) | |
│ │ ┌───────────── day of the month (1 - 31) | |
│ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | |
│ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | |
│ │ │ │ │ | |
│ │ │ │ │ | |
│ │ │ │ │ | |
* * * * * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: '* 0 * * 1' | |
jobs: | |
main: | |
name: main | |
runs-on: ubuntu-latest | |
steps: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tap "dkanejs/aws-session-manager-plugin" | |
tap "github/gh" | |
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/core" | |
tap "homebrew/services" | |
brew "autoconf" | |
brew "automake" | |
brew "awscli" | |
brew "circleci", link: false |
OlderNewer