This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
chore(deps): update eslint packages #612
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CI" | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
env: | |
CI: true | |
jobs: | |
Test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
channel: [stable, beta] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: UziTech/action-setup-atom@v3 | |
with: | |
version: ${{ matrix.channel }} | |
- name: Atom version | |
run: atom -v | |
- name: APM version | |
run: apm -v | |
- name: Install dependencies | |
run: apm ci | |
- name: Run tests 👩🏾💻 | |
run: atom --test spec | |
Lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 'lts/*' | |
- name: NPM install | |
run: npm ci | |
- name: Lint ✨ | |
run: npm run lint | |
Release: | |
needs: [Test, Lint] | |
if: github.ref == 'refs/heads/master' && github.event.repository.fork == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: UziTech/action-setup-atom@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 'lts/*' | |
- name: NPM install | |
run: npm ci | |
- name: Release 🎉 | |
env: | |
# Override the default Actions token with a private token | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
ATOM_ACCESS_TOKEN: ${{ secrets.ATOM_ACCESS_TOKEN }} | |
run: npx semantic-release |