Skip to content

mvenkat1708/github-actions-demo-project

 
 

Repository files navigation

Github Actions Tutorial

Introduction

Github Actions is a CI/CD tool that allows you to automate your workflow. It is a powerful tool that can be used to build, test, package, release, and deploy your code. In this tutorial, we will learn how to create a Github Actions workflow.

Prerequisites

  • Github account
  • Repository with code (you can use this repository)

Steps

  1. Create a new file in the .github/workflows directory
  2. Define the workflow
  3. Push the changes to the repository
  4. Check the Actions tab in the repository

Example Workflow

name: Test Project

on:
  pull_request:
    branches:
      - main

jobs:
  test:
    runs-on: ubuntu-latest
    container:
      image: node:20
    steps:
      - uses: actions/checkout@v3
        with:
          node-version: 20
      - run: npm ci
      - run: npm test
      - run: npm run build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.9%
  • JavaScript 4.1%