Skip to content

Commit

Permalink
ci: replace travis with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuel Suriano committed Feb 15, 2021
1 parent 6d74147 commit 964e37b
Show file tree
Hide file tree
Showing 9 changed files with 2,496 additions and 2,243 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/manual.yml
Expand Up @@ -2,7 +2,8 @@ name: Manual workflow

on:
push:
branches: master
branches:
- master

jobs:
update-readme:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/pr-checker.yml
@@ -0,0 +1,39 @@
name: Pr Checker

on:
pull_request:
branches:
- master

jobs:
checkout:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Manual deploy
uses: actions/setup-node@v1
- run: yarn install --frozen-lockfile

build:
runs-on: ubuntu-latest
needs: checkout
steps:
- run: yarn build
env:
ACCESS_TOKEN: ${{secrets.ACCESS_TOKEN}}
SPACE_ID: ${{secrets.SPACE_ID}}

lint:
runs-on: ubuntu-latest
needs: checkout
steps:
- run: yarn lint

test:
runs-on: ubuntu-latest
needs: checkout
steps:
- run: yarn test:ci
env:
ACCESS_TOKEN: ${{secrets.ACCESS_TOKEN}}
SPACE_ID: ${{secrets.SPACE_ID}}
1 change: 1 addition & 0 deletions .nvmrc
@@ -0,0 +1 @@
12
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions cypress/e2e/visual-testing.test.js
@@ -1,5 +1,3 @@
/* eslint-disable cypress/no-unnecessary-waiting */

describe('Visual Testing', () => {
const SCREENS = [375, 768, 1280];

Expand Down
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -56,7 +56,6 @@
"gatsby-source-contentful": "^3.1.3",
"gatsby-source-medium": "^2.5.0",
"gatsby-transformer-remark": "^2.10.0",
"prop-types": "^15.6.2",
"react": "^16.14.0",
"react-awesome-reveal": "^3.5.1",
"react-dom": "^16.14.0",
Expand Down
5 changes: 0 additions & 5 deletions src/components/Layout.tsx
@@ -1,6 +1,5 @@
import React, { ReactNode } from 'react';
import { createGlobalStyle, ThemeProvider } from 'styled-components';
import PropTypes from 'prop-types';
import { ScrollingProvider } from 'react-scroll-section';
import Helmet from './Helmet';
import theme from '../theme';
Expand Down Expand Up @@ -43,8 +42,4 @@ const Layout = ({ children }: Props) => (
</main>
);

Layout.propTypes = {
children: PropTypes.node.isRequired,
};

export default Layout;
7 changes: 0 additions & 7 deletions src/components/Section.tsx
Expand Up @@ -2,7 +2,6 @@ import React, { ReactNode } from 'react';
import styled from 'styled-components';
import { Section } from 'react-scroll-section';
import { Heading } from 'rebass/styled-components';
import PropTypes from 'prop-types';
import { Slide } from 'react-awesome-reveal';
import Link from './Link';

Expand All @@ -23,12 +22,6 @@ const Container = ({
</Section>
);

Container.propTypes = {
id: PropTypes.string.isRequired,
children: PropTypes.node.isRequired,
Background: PropTypes.func,
};

type HeaderProps = {
name: string;
icon?: string;
Expand Down

0 comments on commit 964e37b

Please sign in to comment.