Skip to content

Commit

Permalink
move to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
GabeDuarteM committed Mar 23, 2023
1 parent ca90509 commit 8c2dc4f
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 14 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: CI

on: [push, pull_request]

env:
CI: true

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, latest]

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Echo versions used
run: echo "node:" && node --version && echo "" && echo "npm:" && npm --version && echo "" && echo "yarn:" && yarn --version

- name: Install dependencies
run: yarn install

- name: Run CI script
run: yarn run ci

release:
runs-on: ubuntu-latest

needs: build

if: github.ref == 'refs/heads/master'

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: Echo versions used
run: echo "node:" && node --version && echo "" && echo "npm:" && npm --version && echo "" && echo "yarn:" && yarn --version

- name: Install dependencies
run: yarn install

- name: Run build
run: yarn run build

- name: Run semantic-release
run: yarn run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
GOOGLE_REFRESH_TOKEN: ${{ secrets.GOOGLE_REFRESH_TOKEN }}
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

0 comments on commit 8c2dc4f

Please sign in to comment.