Coder Social home page Coder Social logo

peaceiris / actions-pixela Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 2.0 3.32 MB

GitHub Actions for Pixela (a-know/pi) - a-know/pi Setup Action. Linux (Ubuntu), macOS, and Windows are supported.

License: MIT License

Dockerfile 5.73% Makefile 3.89% TypeScript 79.55% JavaScript 1.92% Shell 8.91%
github-actions pixela actions

actions-pixela's Introduction

GitHub Actions for Pixela (a-know/pi)

GitHub Actions for Pixela

This Pixela Setup Action can install a-know/pi to a virtual machine of GitHub Actions. Linux (Ubuntu), macOS, and Windows are supported.

OS (runs-on) ubuntu-18.04 macos-latest windows-latest
Support ✅️ ✅️ ✅️

license release GitHub release date Test CodeFactor codecov Release Feed

Table of Contents

Getting started

Add Pixela User Token

  1. Go to Settings > Secrets.
  2. Add your PIXELA_USER_TOKEN as a new secret.

Example Workflow

Workflow file: .github/workflows/pixela.yml

name: pixela

on:
  push:
    branches:
      - main

jobs:
  increment:
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v2

      - name: Setup a-know/pi
        uses: peaceiris/actions-pixela@v2
        with:
          pi_version: '1.2.0'

      - name: Increment
        env:
          PIXELA_USER_TOKEN: ${{ secrets.PIXELA_USER_TOKEN }}
        run: |
          pi pixel increment -u <username> -g <graph-id>

Matrix build

name: 'Test'

on:
  push:
    branches:
      - main

jobs:
  test:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os:
          - 'ubuntu-18.04'
          - 'macos-latest'
          - 'windows-latest'
        include:
          - os: 'ubuntu-18.04'
            graph_id: 'gha-pi-ci-linux'
          - os: 'macos-latest'
            graph_id: 'gha-pi-ci-macos'
          - os: 'windows-latest'
            graph_id: 'gha-pi-ci-win'
    steps:
      - uses: actions/checkout@v2

      - name: Setup pi
        uses: peaceiris/actions-pixela@v2
        with:
          pi_version: '1.2.0'

      - name: Increment
        env:
          PIXELA_USER_TOKEN: ${{ secrets.PIXELA_USER_TOKEN }}
        run: |
          pi pixel increment -u <username> -g '${{ matrix.graph_id }}'

Example Graphs

CI Test on Linux Passed

GitHub Actions for Pixela CI Linux

CI Test on macOS Passed

GitHub Actions for Pixela CI macOS

CI Test on Windows Passed

GitHub Actions for Pixela CI Windows

CHANGELOG

License

About Maintainer

Maintainer Notes

Run npm and git commit commands on a container.

On Host

# Docker
make build
make run
make run cmd="env"
make test
make commit msg="chore: Add Makefile"

# Release
./release.sh

actions-pixela's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar peaceiris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

devcleverton

actions-pixela's Issues

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.