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: Test | |
on: | |
workflow_dispatch: | |
inputs: | |
used-branch: | |
description: Branch the test shall be run on | |
default: master | |
required: true | |
push: |
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
import { configureStore, createSlice, PayloadAction } from '@reduxjs/toolkit'; | |
import { useSelector, useDispatch } from 'react-redux'; | |
export const mySlice = createSlice({ | |
name: 'MyItem', | |
initialState: { field1: 'hello, world', field2: 0 }, | |
reducers: { | |
setField: (state: { field1: string; field2: number }, action: PayloadAction<string>) => { | |
state.field1 = action.payload; | |
}, |
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
package function | |
import ( | |
"bytes" | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rand" | |
"encoding/base64" | |
"fmt" | |
"io" |
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
package demo | |
import ( | |
"context" | |
"github.com/go-chi/chi" | |
"github.com/go-chi/chi/middleware" | |
"github.com/stretchr/testify/assert" | |
"io/ioutil" | |
"net/http" | |
"testing" |