Giter Club home page Giter Club logo

github-actions-twilio-presentation's Introduction

Github Actions Demo Workshop

Objective

To learn & understand deployment pipelines, what problems they solve, and how they can be integrated at a small scale, using CI/CD tools with Github Actions.

Click here to access Presentation Slides

Instructions

  1. Fork the repository.

    • Note: If you have your own Node.js project with several npm/yarn scripts already, you may use that instead.
  2. Clone your fork to local. You can run npm i and npm run build optionally.

  3. Go to "Actions" tab on your forked repository

  4. Look for "Node.js" when searching for a Workflow template

  5. You can click "Start Commit" on the right side, or copy the contents of the .yml file and proceed with the following steps:

    1. Create a folder in the root directory of your fork called .github.
    2. Inside the .github folder, create a folder called workflows. This is where you will create any workflow files.
    3. Create a .yml file, name it whatever you want, and paste the contents you copied from earlier on the remote repository.
  6. Your .github/workflows/<name>.yml file should look very close to this:

name: Node.js CI

on:
  push:
    branches: [master]
  pull_request:
    branches: [master]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [12.x, 14.x, 16.x]
    steps:
      - uses: actions/checkout@v2
      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v2
        with:
          node-version: ${{ matrix.node-version }}
          cache: 'npm'
      - run: npm ci
      - run: npm run build --if-present
      - run: npm test
  1. Stage, commit, and push the changes to your remote repository (or the fork) and click on "Actions" on the remote repository again and see the job running live.

github-actions-twilio-presentation's People

Contributors

onlywade avatar stuyy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.